Parcourir la source

fix(test): fixed failing test caused by recent change

Torkel Ödegaard il y a 9 ans
Parent
commit
89dc3b88d1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      public/app/features/dashboard/timeSrv.js

+ 1 - 1
public/app/features/dashboard/timeSrv.js

@@ -13,7 +13,7 @@ define([
   module.service('timeSrv', function($rootScope, $timeout, $routeParams, timer) {
   module.service('timeSrv', function($rootScope, $timeout, $routeParams, timer) {
     var self = this;
     var self = this;
 
 
-    $rootScope.onAppEvent('zoom-out', function(e, factor) { self.zoomOut(factor); }, $rootScope);
+    $rootScope.$on('zoom-out', function(e, factor) { self.zoomOut(factor); });
 
 
     this.init = function(dashboard) {
     this.init = function(dashboard) {
       timer.cancel_all();
       timer.cancel_all();