Merge pull request #1781 from nasa/view-destroy

[Views] Clear regions on destroy
This commit is contained in:
Andrew Henry 2017-10-19 12:17:24 -07:00 committed by GitHub
commit 63a8c91f71

View File

@ -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));
}
};
}