This commit is contained in:
21
ayanova/src/api/gzutil.js
Normal file
21
ayanova/src/api/gzutil.js
Normal 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
|
||||
};
|
||||
Reference in New Issue
Block a user