Remove selectable from display layut

This commit is contained in:
Pegah Sarram 2018-10-05 11:36:42 -07:00
parent acc4e03c88
commit 27506a3757

View File

@ -310,20 +310,12 @@
}
},
mounted() {
this.removeSelectable = this.openmct.selection.selectable(
this.$el,
{
item: this.newDomainObject
},
this.initSelect
);
this.openmct.selection.on('change', this.setSelection);
},
destroyed: function () {
this.composition.off('add', this.onAddComposition);
this.composition.off('remove', this.onRemoveComposition);
this.openmct.off('change', this.selection);
this.removeSelectable();
this.unlisten();
}
}