@azrico/webobject 1.3.17 → 1.3.18
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.
|
@@ -69,6 +69,7 @@ export declare class WebObject extends SimpleObject {
|
|
|
69
69
|
static get_webname(): string | undefined;
|
|
70
70
|
get manager(): WebObjectManager<any> | null;
|
|
71
71
|
get_managerClass: () => WebObjectManager<any> | null;
|
|
72
|
+
set_managerClass(mng: WebObjectManager<any> | any): void;
|
|
72
73
|
onDelete(...p: any): Promise<any>;
|
|
73
74
|
onLoad(...p: any): Promise<any>;
|
|
74
75
|
onSave(...p: any): Promise<any>;
|
|
@@ -343,9 +343,17 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
343
343
|
get: function get() {
|
|
344
344
|
return this.get_managerClass();
|
|
345
345
|
}
|
|
346
|
+
}, {
|
|
347
|
+
key: "set_managerClass",
|
|
348
|
+
value: function set_managerClass(mng) {
|
|
349
|
+
this.get_managerClass = function () {
|
|
350
|
+
return mng;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
/* -------------------------------------------------------------------------- */
|
|
346
354
|
}, {
|
|
347
355
|
key: "onDelete",
|
|
348
|
-
value:
|
|
356
|
+
value: function () {
|
|
349
357
|
var _onDelete = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
350
358
|
var _this$manager;
|
|
351
359
|
var _len,
|
|
@@ -95,6 +95,9 @@ var ObjectManager = /*#__PURE__*/function () {
|
|
|
95
95
|
return _this;
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
+
if (toObj == null) {
|
|
99
|
+
console.warn("setObject was used to set null. try to use empty objects instead of null");
|
|
100
|
+
}
|
|
98
101
|
return true;
|
|
99
102
|
}
|
|
100
103
|
/* -------------------------------------------------------------------------- */
|