bump: 3.7.3

This commit is contained in:
qingwei.li 2017-05-22 20:56:25 +08:00
commit 6d244139dd
No known key found for this signature in database
GPG key ID: B6DDC2F7AE80B2F4
5 changed files with 9 additions and 6 deletions

View file

@ -232,7 +232,7 @@ function updatePlaceholder (text, path) {
if (typeof text === 'string') {
$input.placeholder = text;
} else {
var match = Object.keys(text).find(function (key) { return path.indexOf(key) > -1; });
var match = Object.keys(text).filter(function (key) { return path.indexOf(key) > -1; })[0];
$input.placeholder = text[match];
}
}
@ -241,7 +241,7 @@ function updateNoData (text, path) {
if (typeof text === 'string') {
NO_DATA_TEXT = text;
} else {
var match = Object.keys(text).find(function (key) { return path.indexOf(key) > -1; });
var match = Object.keys(text).filter(function (key) { return path.indexOf(key) > -1; })[0];
NO_DATA_TEXT = text[match];
}
}