@azrico/webobject 1.3.18 → 1.3.19
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.
|
@@ -88,12 +88,9 @@ var ObjectManager = /*#__PURE__*/function () {
|
|
|
88
88
|
}, {
|
|
89
89
|
key: "setObject",
|
|
90
90
|
value: function setObject(toObj) {
|
|
91
|
-
var _this = this;
|
|
92
91
|
this.__currentObject = toObj;
|
|
93
92
|
if (this.__currentObject) {
|
|
94
|
-
this.__currentObject.
|
|
95
|
-
return _this;
|
|
96
|
-
};
|
|
93
|
+
this.__currentObject.set_managerClass(this);
|
|
97
94
|
}
|
|
98
95
|
if (toObj == null) {
|
|
99
96
|
console.warn("setObject was used to set null. try to use empty objects instead of null");
|
|
@@ -139,6 +139,7 @@ export declare class SimpleObject extends MapableObject {
|
|
|
139
139
|
get lastChanged(): string;
|
|
140
140
|
get manager(): ObjectManager<any> | null;
|
|
141
141
|
get_managerClass: () => ObjectManager<any> | null;
|
|
142
|
+
set_managerClass(mng: ObjectManager<any> | any): void;
|
|
142
143
|
static isDeleted<T extends SimpleObject>(obj: T): boolean;
|
|
143
144
|
getIndexOrID(): number | string;
|
|
144
145
|
getIndex(): number;
|
|
@@ -634,6 +634,13 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
|
|
|
634
634
|
get: function get() {
|
|
635
635
|
return this.get_managerClass();
|
|
636
636
|
}
|
|
637
|
+
}, {
|
|
638
|
+
key: "set_managerClass",
|
|
639
|
+
value: function set_managerClass(mng) {
|
|
640
|
+
this.get_managerClass = function () {
|
|
641
|
+
return mng;
|
|
642
|
+
};
|
|
643
|
+
}
|
|
637
644
|
}, {
|
|
638
645
|
key: "getIndexOrID",
|
|
639
646
|
value: function getIndexOrID() {
|