@vived/app 3.1.1 → 3.1.2
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.
|
@@ -3,6 +3,7 @@ import { AppObjectComponent } from "./AppObjectComponent";
|
|
|
3
3
|
import { AppObjectRepo } from "./AppObjectRepo";
|
|
4
4
|
export declare abstract class AppObject extends ObservableEntity {
|
|
5
5
|
abstract readonly id: string;
|
|
6
|
+
abstract readonly repo: AppObjectRepo;
|
|
6
7
|
abstract get enabled(): boolean;
|
|
7
8
|
abstract set enabled(val: boolean);
|
|
8
9
|
abstract hasComponent(type: string): boolean;
|
|
@@ -12,7 +12,6 @@ exports.makeAppObject = makeAppObject;
|
|
|
12
12
|
class AppObjectImp extends AppObject {
|
|
13
13
|
constructor(id, repo) {
|
|
14
14
|
super();
|
|
15
|
-
this.repo = repo;
|
|
16
15
|
this.memoizedEnabled = new Entities_1.MemoizedBoolean(true, this.notify);
|
|
17
16
|
this.componentLookup = new Map();
|
|
18
17
|
this.dispose = () => {
|
|
@@ -24,6 +23,7 @@ class AppObjectImp extends AppObject {
|
|
|
24
23
|
}
|
|
25
24
|
};
|
|
26
25
|
this.id = id;
|
|
26
|
+
this.repo = repo;
|
|
27
27
|
this.repo.add(this);
|
|
28
28
|
}
|
|
29
29
|
get enabled() {
|