@azrico/webobject 1.5.32 → 1.5.34

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.
@@ -195,7 +195,7 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
195
195
  case 12:
196
196
  usepath = _context2.sent;
197
197
  if ((0, _object.object_isEmpty)(deltaObject)) {
198
- _context2.next = 26;
198
+ _context2.next = 25;
199
199
  break;
200
200
  }
201
201
  canSaveResult = this.canSave(deltaObject);
@@ -211,43 +211,39 @@ var WebObject = exports.WebObject = /*#__PURE__*/function (_SimpleObject) {
211
211
  return _global.gfunc.run_action(putAction, usepath, deltaObject);
212
212
  case 21:
213
213
  resultObject = _context2.sent;
214
- this.setSaveResult(resultObject, "auto");
215
- if (!this.__saveResultIsSuccess) {
216
- console.error("bad save result : ", resultObject);
217
- WebObject.addError(this, "Save result is not valid", "the response from server was not a valid saveresult object !", true);
218
- }
219
- _context2.next = 27;
214
+ this.setSaveResult(resultObject, "auto", true);
215
+ _context2.next = 26;
220
216
  break;
221
- case 26:
217
+ case 25:
222
218
  /* nothing to save */
223
219
  this.setSaveResult(null, "nothing");
224
- case 27:
220
+ case 26:
225
221
  if (!this.isSaved) {
226
- _context2.next = 31;
222
+ _context2.next = 30;
227
223
  break;
228
224
  }
229
- _context2.next = 30;
225
+ _context2.next = 29;
230
226
  return this.onSave();
231
- case 30:
227
+ case 29:
232
228
  return _context2.abrupt("return", this.getSaveResult());
233
- case 31:
234
- _context2.prev = 31;
229
+ case 30:
230
+ _context2.prev = 30;
235
231
  if (!this.manager) {
236
- _context2.next = 37;
232
+ _context2.next = 36;
237
233
  break;
238
234
  }
239
- _context2.next = 35;
235
+ _context2.next = 34;
240
236
  return this.manager.setOption("saving", false);
241
- case 35:
242
- _context2.next = 37;
237
+ case 34:
238
+ _context2.next = 36;
243
239
  return this.manager.setOption("loading", false);
240
+ case 36:
241
+ return _context2.finish(30);
244
242
  case 37:
245
- return _context2.finish(31);
246
- case 38:
247
243
  case "end":
248
244
  return _context2.stop();
249
245
  }
250
- }, _callee2, this, [[0,, 31, 38]]);
246
+ }, _callee2, this, [[0,, 30, 37]]);
251
247
  }));
252
248
  function Save() {
253
249
  return _Save.apply(this, arguments);
@@ -67,12 +67,11 @@ var ObjectManager = exports.ObjectManager = /*#__PURE__*/function (_RawObject) {
67
67
  case 3:
68
68
  if (value === undefined && type != "meta") value = obj.get(key);
69
69
  typestr = (type ? "$".concat(type, "$") : "") + String(key);
70
- console.log("notifyChanged", key, value);
71
- _context.next = 8;
70
+ _context.next = 7;
72
71
  return this.event_run("on_change", typestr, value);
73
- case 8:
72
+ case 7:
74
73
  return _context.abrupt("return", _context.sent);
75
- case 9:
74
+ case 8:
76
75
  case "end":
77
76
  return _context.stop();
78
77
  }
@@ -696,9 +696,8 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
696
696
  case 9:
697
697
  return _context12.abrupt("return", _context12.sent);
698
698
  case 10:
699
- console.log("notifyChanged Failed NO MANAGER");
700
699
  return _context12.abrupt("return", false);
701
- case 12:
700
+ case 11:
702
701
  case "end":
703
702
  return _context12.stop();
704
703
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.5.32",
3
+ "version": "1.5.34",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",