@azrico/webobject 1.4.168 → 1.4.169
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.
|
@@ -473,34 +473,37 @@ var WebObjectManager = exports.WebObjectManager = /*#__PURE__*/function (_Object
|
|
|
473
473
|
_context13.prev = 2;
|
|
474
474
|
this.event_run("on_process_start", true);
|
|
475
475
|
classType = (0, _object.object_getStatic)(this, "__object_type");
|
|
476
|
-
|
|
476
|
+
if (!classType) {
|
|
477
|
+
console.error("[webobjectmanager]", "classType is not defined", this);
|
|
478
|
+
}
|
|
479
|
+
_context13.next = 8;
|
|
477
480
|
return classType.get_single(id, false);
|
|
478
|
-
case
|
|
481
|
+
case 8:
|
|
479
482
|
result_product = _context13.sent;
|
|
480
483
|
if (!(result_product && _typeof(result_product) === "object" && _index.WebObject.getID(result_product))) {
|
|
481
|
-
_context13.next =
|
|
484
|
+
_context13.next = 15;
|
|
482
485
|
break;
|
|
483
486
|
}
|
|
484
487
|
this.setObject(result_product);
|
|
485
|
-
_context13.next =
|
|
488
|
+
_context13.next = 13;
|
|
486
489
|
return result_product.onLoad();
|
|
487
|
-
case
|
|
488
|
-
_context13.next =
|
|
490
|
+
case 13:
|
|
491
|
+
_context13.next = 17;
|
|
489
492
|
break;
|
|
490
|
-
case
|
|
493
|
+
case 15:
|
|
491
494
|
console.error("badobject:", id, result_product);
|
|
492
495
|
_index.WebObject.addError(this.obj, "Invalid ".concat(this.__object_name), "The loaded ".concat(this.__object_name, " from website is invalid"), true);
|
|
493
|
-
case
|
|
494
|
-
_context13.prev =
|
|
496
|
+
case 17:
|
|
497
|
+
_context13.prev = 17;
|
|
495
498
|
this.event_run("on_process_end", true);
|
|
496
|
-
return _context13.finish(
|
|
497
|
-
case 19:
|
|
498
|
-
return _context13.abrupt("return", this.getObject());
|
|
499
|
+
return _context13.finish(17);
|
|
499
500
|
case 20:
|
|
501
|
+
return _context13.abrupt("return", this.getObject());
|
|
502
|
+
case 21:
|
|
500
503
|
case "end":
|
|
501
504
|
return _context13.stop();
|
|
502
505
|
}
|
|
503
|
-
}, _callee13, this, [[2,,
|
|
506
|
+
}, _callee13, this, [[2,, 17, 20]]);
|
|
504
507
|
}));
|
|
505
508
|
function Load(_x7) {
|
|
506
509
|
return _Load.apply(this, arguments);
|