mirror of
https://github.com/nasa/openmct.git
synced 2025-03-01 20:24:48 +00:00
move var declaration around for clarity
This commit is contained in:
parent
084df5329a
commit
0da80c2a67
@ -31,10 +31,13 @@ export default class ConditionManager extends EventEmitter {
|
|||||||
this.domainObject = domainObject;
|
this.domainObject = domainObject;
|
||||||
this.timeAPI = this.openmct.time;
|
this.timeAPI = this.openmct.time;
|
||||||
this.latestTimestamp = {};
|
this.latestTimestamp = {};
|
||||||
this.instantiate = this.openmct.$injector.get('instantiate');
|
this.conditionResults = {};
|
||||||
this.conditionCollection = [];
|
this.conditionCollection = [];
|
||||||
|
this.instantiate = this.openmct.$injector.get('instantiate');
|
||||||
this.composition = this.openmct.composition.get(domainObject);
|
this.composition = this.openmct.composition.get(domainObject);
|
||||||
|
console.log(this.composition);
|
||||||
this.loaded = this.composition.load();
|
this.loaded = this.composition.load();
|
||||||
|
console.log(this.loaded);
|
||||||
this.initialize();
|
this.initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,8 +46,6 @@ export default class ConditionManager extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initialize() {
|
initialize() {
|
||||||
this.conditionResults = {};
|
|
||||||
|
|
||||||
this.openmct.objects.get(this.domainObject.identifier)
|
this.openmct.objects.get(this.domainObject.identifier)
|
||||||
.then((obj) => {
|
.then((obj) => {
|
||||||
this.observeForChanges(obj);
|
this.observeForChanges(obj);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user