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

fix: undefined is not an object evaluating this., #9538

Torkel Ödegaard 8 лет назад
Родитель
Сommit
3e3cef28ec
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/core/services/timer.ts

+ 1 - 1
public/app/core/services/timer.ts

@@ -21,7 +21,7 @@ export class Timer {
   }
 
   cancelAll() {
-    _.each(this.timers, function (t) {
+    _.each(this.timers, t => {
       this.$timeout.cancel(t);
     });
     this.timers = [];