This commit is contained in:
2019-04-04 18:05:59 +00:00
parent 67d46052c7
commit 108338dbeb
5 changed files with 33 additions and 13 deletions

21
ayanova/src/api/gzutil.js Normal file
View File

@@ -0,0 +1,21 @@
/* Xeslint-disable */
/////////////////////////////////
// General utility library
//
export default {
///////////////////////////////
// CLEAN OBJECT
// Clear all properties from object without resorting to assigning a new object (o={})
// which can be problematic in some cases (IE bugs, watched data items in forms etc)
RemoveAllPropertiesFromObject(o) {
for (var variableKey in o) {
if (o.hasOwnProperty(variableKey)) {
delete o[variableKey];
}
}
}
//new functions above here
};