Cleanup unused events.

This commit is contained in:
Alexis Lahouze 2017-06-18 00:44:14 +02:00
parent 66a19034dd
commit 1bfd7693dd

View File

@ -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(); vm.operations = vm.load();
}) })