mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
Merge pull request #1781 from nasa/view-destroy
[Views] Clear regions on destroy
This commit is contained in:
commit
63a8c91f71
@ -33,6 +33,7 @@ define([
|
||||
link: function (scope, element, attrs) {
|
||||
var region = new Region(element[0]);
|
||||
scope.$watch(attrs.mctView, region.show.bind(region));
|
||||
scope.$on("$destroy", region.clear.bind(region));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user