Cleanup unused events.
This commit is contained in:
parent
66a19034dd
commit
1bfd7693dd
@ -180,17 +180,6 @@ var operationModule = angular.module('accountant.operations', [
|
||||
});
|
||||
};
|
||||
|
||||
/*
|
||||
* Reload operations on rangeSelectedEvent.
|
||||
*/
|
||||
vm.onRangeSelected = $rootScope.$on('rangeSelectedEvent', function(e, args) {
|
||||
vm.load(args.begin, args.end);
|
||||
});
|
||||
|
||||
$rootScope.$on('$destroy', function() {
|
||||
vm.onRangeSelected = angular.noop;
|
||||
});
|
||||
|
||||
vm.operations = vm.load();
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user