@azrico/webobject 1.4.147 → 1.4.149
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.
- package/dist/src/structs/SimpleObject.js +17 -11
- package/package.json +1 -1
|
@@ -167,7 +167,8 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
167
167
|
return _context.abrupt("return", false);
|
|
168
168
|
case 7:
|
|
169
169
|
isValueChanged = false;
|
|
170
|
-
|
|
170
|
+
console.log("setValue", key, value, shouldNotify);
|
|
171
|
+
_context.prev = 9;
|
|
171
172
|
oldval = this.getValue(key);
|
|
172
173
|
if (!(0, _object.object_equals)(oldval, value, {
|
|
173
174
|
strictArrayCheck: true,
|
|
@@ -176,24 +177,29 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
176
177
|
_classPrivateMethodGet(this, _setProperty, _setProperty2).call(this, key, value);
|
|
177
178
|
isValueChanged = true;
|
|
178
179
|
} else isValueChanged = false;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
180
|
+
_context.next = 17;
|
|
181
|
+
break;
|
|
182
|
+
case 14:
|
|
183
|
+
_context.prev = 14;
|
|
184
|
+
_context.t0 = _context["catch"](9);
|
|
185
|
+
console.error("setValue failed", _context.t0);
|
|
186
|
+
case 17:
|
|
187
|
+
_context.prev = 17;
|
|
182
188
|
if (!(shouldNotify === true || shouldNotify === "auto" && isValueChanged)) {
|
|
183
|
-
_context.next =
|
|
189
|
+
_context.next = 21;
|
|
184
190
|
break;
|
|
185
191
|
}
|
|
186
|
-
_context.next =
|
|
192
|
+
_context.next = 21;
|
|
187
193
|
return this.notifyChanged("", key, value);
|
|
188
|
-
case
|
|
189
|
-
return _context.finish(
|
|
190
|
-
case
|
|
194
|
+
case 21:
|
|
195
|
+
return _context.finish(17);
|
|
196
|
+
case 22:
|
|
191
197
|
return _context.abrupt("return", isValueChanged);
|
|
192
|
-
case
|
|
198
|
+
case 23:
|
|
193
199
|
case "end":
|
|
194
200
|
return _context.stop();
|
|
195
201
|
}
|
|
196
|
-
}, _callee, this, [[
|
|
202
|
+
}, _callee, this, [[9, 14, 17, 22]]);
|
|
197
203
|
}));
|
|
198
204
|
function setValue(_x, _x2) {
|
|
199
205
|
return _setValue.apply(this, arguments);
|