Merge branch 'condition-class' of https://github.com/nasa/openmct into conditionSet-with-classes

This commit is contained in:
Joshi 2020-01-16 15:47:34 -08:00
commit bf1efaf912

View File

@ -98,7 +98,7 @@ export default class ConditionClass extends EventEmitter {
addCriterion(criterionDefinition) {
let criterionDefinitionWithId = this.generateCriterion(criterionDefinition || null);
let criterion = new TelemetryCriterion(criterionDefinitionWithId, this.openmct);
criterion.on('criterionUpdated', this.handleCriterionUpdated);
criterion.on('criterionUpdated', (obj) => this.this.handleCriterionUpdated(obj));
if (!this.criteria) {
this.criteria = [];
}