@azrico/webobject 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -23,4 +23,4 @@ function b(){var a,d=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],
|
|
|
23
23
|
return this.__originalobject=(0,_object.object_removeKeys)(b,["__"]),this}}],[{key:"loadValues",value:function loadValues(a,b){!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];if(null==b)for(var c in a)delete a[c];else if("object"==_typeof(b))for(var d in b)//if (fullUpdate != true) {
|
|
24
24
|
// if (key.startsWith("_")) continue;
|
|
25
25
|
//}
|
|
26
|
-
d.startsWith("__")||Object.prototype.hasOwnProperty.call(a,d)&&(a[d]=b[d]);return!0}/* -------------------------------------------------------------------------- */},{key:"getValue",value:function getValue(a,c){var d=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];return a instanceof b&&"function"==typeof a.getValue?a.getValue(c,d):!d&&a.__delta[c]?a.__delta[c]:a[c]}},{key:"isDeleted",value:function isDeleted(a){return!!(a instanceof b)
|
|
26
|
+
d.startsWith("__")||Object.prototype.hasOwnProperty.call(a,d)&&(a[d]=b[d]);return!0}/* -------------------------------------------------------------------------- */},{key:"getValue",value:function getValue(a,c){var d=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2];return a instanceof b&&"function"==typeof a.getValue?a.getValue(c,d):!d&&a.__delta[c]?a.__delta[c]:a[c]}},{key:"isDeleted",value:function isDeleted(a){return!!(a instanceof b)&&!0===a.isDeleted}},{key:"setOriginal",value:function setOriginal(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return a instanceof b?a.setOriginal(c):void 0}},{key:"getOriginal",value:function getOriginal(a){return a instanceof b?a.getOriginal():null===a||void 0===a?void 0:a.__originalobject}/* -------------------------------------------------------------------------- */ /* statics */ /* -------------------------------------------------------------------------- */},{key:"delete_cache",value:function delete_cache(){this.__cache_name&&_global.gcache.delete_cache(this.__cache_name)}},{key:"get_canModify",value:function get_canModify(a){return!!(a instanceof b)&&a.get_canModify()}/* -------------------------------------------------------------------------- */},{key:"equals",value:function equals(c,a){return console.warn("Dont use the default equals method !"),null!=c&&null!=a&&c===a}}]),b}(_MapableObject2.MapableObject);exports.SimpleObject=SimpleObject,_defineProperty(SimpleObject,"__cache_name","");var _default=SimpleObject;exports["default"]=_default;
|