Просмотр исходного кода

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

Torkel Ödegaard 9 лет назад
Родитель
Сommit
89dc3b88d1
1 измененных файлов с 1 добавлено и 1 удалено
  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) {
     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) {
       timer.cancel_all();