This commit is contained in:
@@ -10,7 +10,7 @@ export default {
|
||||
// which can be problematic in some cases (IE bugs, watched data items in forms etc)
|
||||
|
||||
removeAllPropertiesFromObject: function(o) {
|
||||
for (var variableKey in o) {
|
||||
for (let variableKey in o) {
|
||||
if (o.hasOwnProperty(variableKey)) {
|
||||
delete o[variableKey];
|
||||
}
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
// https://stackoverflow.com/a/7616484/8939
|
||||
//
|
||||
quickHash: function(theString) {
|
||||
var hash = 0,
|
||||
let hash = 0,
|
||||
i,
|
||||
chr;
|
||||
if (theString.length === 0) return hash;
|
||||
@@ -141,7 +141,7 @@ export default {
|
||||
return 0;
|
||||
}
|
||||
|
||||
var ret = parseFloat(string.replace(/[^\d.-]/g, ""));
|
||||
let ret = parseFloat(string.replace(/[^\d.-]/g, ""));
|
||||
if (ret == NaN) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user