From 1bfd7693dd6339609a9efc08d5f8d24aaa426731 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 18 Jun 2017 00:44:14 +0200 Subject: [PATCH] Cleanup unused events. --- src/operations/index.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/operations/index.js b/src/operations/index.js index 60b6b20..125beb2 100644 --- a/src/operations/index.js +++ b/src/operations/index.js @@ -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(); })