@azrico/webobject 1.5.33 → 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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.5.33",
3
+ "version": "1.5.34",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",