Explorar el Código

fix(): minor fix for event emitter

Torkel Ödegaard hace 9 años
padre
commit
34cb17546d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/app/core/utils/emitter.ts

+ 1 - 1
public/app/core/utils/emitter.ts

@@ -23,7 +23,7 @@ export class Emitter {
     this.emitter.on(name, handler);
 
     if (scope) {
-      scope.$on('$destroy', function() {
+      scope.$on('$destroy', () => {
         this.emitter.off(name, handler);
       });
     }