mirror of https://github.com/vitalif/dimple
bug fix in _createClass method
a call method 'toString' of null may arise when some value of stringArray is null.master
parent
c1a884e327
commit
0e3d27c8cf
|
@ -4160,10 +4160,12 @@
|
|||
};
|
||||
if (stringArray.length > 0) {
|
||||
for (i = 0; i < stringArray.length; i += 1) {
|
||||
/*jslint regexp: true */
|
||||
returnArray.push("dimple-" + stringArray[i].toString().replace(/[^a-z0-9]/g, replacer));
|
||||
/*jslint regexp: false */
|
||||
}
|
||||
if (stringArray[i]) {
|
||||
/*jslint regexp: true */
|
||||
returnArray.push("dimple-" + stringArray[i].toString().replace(/[^a-z0-9]/g, replacer));
|
||||
/*jslint regexp: false */
|
||||
}
|
||||
}
|
||||
} else {
|
||||
returnArray = ["dimple-all"];
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -15,10 +15,12 @@
|
|||
};
|
||||
if (stringArray.length > 0) {
|
||||
for (i = 0; i < stringArray.length; i += 1) {
|
||||
/*jslint regexp: true */
|
||||
returnArray.push("dimple-" + stringArray[i].toString().replace(/[^a-z0-9]/g, replacer));
|
||||
/*jslint regexp: false */
|
||||
}
|
||||
if (stringArray[i]) {
|
||||
/*jslint regexp: true */
|
||||
returnArray.push("dimple-" + stringArray[i].toString().replace(/[^a-z0-9]/g, replacer));
|
||||
/*jslint regexp: false */
|
||||
}
|
||||
}
|
||||
} else {
|
||||
returnArray = ["dimple-all"];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue