Closed kasparsklavins closed 5 years ago
Are .min
files updated automatically?
Need to understand this correct. There is a validation condition for typeof data === "object"
already before the test you have. The following condition should normally result in data as a string. Why do you feel typeof data === "string"
test is needed? Do you have any other type other than string coming up in your use case?
You can minify the JS files from here and submit.
When using in combination with select2, and removing all selected options, $input.value
is undefined. So, an undefined value is passed from here https://github.com/kartik-v/yii2-editable/blob/master/src/assets/js/editable.js#L201.
According to jquery docs, val()
can return a string, a number, an array or undefined. replace()
exists only on string values, so behaviour is not changed (unless someone depended on a TypeError being thrown)
I'll minify the file if no further changes are needed.
You can minify the JS files from here and submit.
k
Scope
This pull request includes a
Changes
The following changes were made (this change is also documented in the change log):
htmlEncode
. Not documented.