Needed to bind removeSchedulesRefresh to the scope so that we could clear the listener properly

This commit is contained in:
Michael Abashian 2016-07-06 10:51:26 -04:00
parent 2528952090
commit 6788043eff

View File

@ -576,7 +576,7 @@ export default
if (scope.removeSchedulesRefresh) {
scope.removeSchedulesRefresh();
}
scope.$on('SchedulesRefresh', function() {
scope.removeSchedulesRefresh = scope.$on('SchedulesRefresh', function() {
scope.search(iterator);
});
};