@azrico/webobject 1.4.102 → 1.4.104
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.
|
@@ -1013,7 +1013,7 @@ var WebObject = /*#__PURE__*/function (_SimpleObject, _setMetaValue, _Save, _Del
|
|
|
1013
1013
|
});
|
|
1014
1014
|
case 7:
|
|
1015
1015
|
result_items = _context18.sent;
|
|
1016
|
-
selftype = this.
|
|
1016
|
+
selftype = this.constructor;
|
|
1017
1017
|
res = WebObject.map_rowindex(WebObject.mapto(selftype, result_items, readonly));
|
|
1018
1018
|
WebObject.setReadonly(res, readonly);
|
|
1019
1019
|
return _context18.abrupt("return", res);
|
|
@@ -1249,19 +1249,21 @@ function _getSubProperty2(key, subkey) {
|
|
|
1249
1249
|
return subobj[subkey];
|
|
1250
1250
|
}
|
|
1251
1251
|
function _setProperty2(key, value) {
|
|
1252
|
-
if (this
|
|
1253
|
-
|
|
1254
|
-
* We set something back to its original value so no need to save it as Delta
|
|
1255
|
-
*/
|
|
1256
|
-
delete this.__delta[key];
|
|
1257
|
-
return false;
|
|
1258
|
-
} else {
|
|
1252
|
+
if (!this.__use_delta) {
|
|
1253
|
+
this[key] = value; //on noDelta mode, also update the obj
|
|
1259
1254
|
this.__delta[key] = value; //always update delta to keep track of changes
|
|
1260
|
-
if (!this.__use_delta) {
|
|
1261
|
-
this[key] = value; //on noDelta mode, also update the obj
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
1255
|
return true;
|
|
1256
|
+
} else {
|
|
1257
|
+
if (this[key] === value) {
|
|
1258
|
+
/**
|
|
1259
|
+
* We set something back to its original value so no need to save it as Delta
|
|
1260
|
+
*/
|
|
1261
|
+
delete this.__delta[key];
|
|
1262
|
+
return false;
|
|
1263
|
+
} else {
|
|
1264
|
+
this.__delta[key] = value; //always update delta to keep track of changes
|
|
1265
|
+
return true;
|
|
1266
|
+
}
|
|
1265
1267
|
}
|
|
1266
1268
|
}
|
|
1267
1269
|
function _setDefaultProperty2(key, value) {
|