mirror of
https://github.com/nasa/openmct.git
synced 2025-03-01 12:22:42 +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.timeAPI = this.openmct.time;
|
||||
this.latestTimestamp = {};
|
||||
this.instantiate = this.openmct.$injector.get('instantiate');
|
||||
this.conditionResults = {};
|
||||
this.conditionCollection = [];
|
||||
this.instantiate = this.openmct.$injector.get('instantiate');
|
||||
this.composition = this.openmct.composition.get(domainObject);
|
||||
console.log(this.composition);
|
||||
this.loaded = this.composition.load();
|
||||
console.log(this.loaded);
|
||||
this.initialize();
|
||||
}
|
||||
|
||||
@ -43,8 +46,6 @@ export default class ConditionManager extends EventEmitter {
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this.conditionResults = {};
|
||||
|
||||
this.openmct.objects.get(this.domainObject.identifier)
|
||||
.then((obj) => {
|
||||
this.observeForChanges(obj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user