fix(): minor fix for event emitter

pull/4527/head
Torkel Ödegaard 9 years ago
parent 7c06604f16
commit 34cb17546d
  1. 2
      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);
});
}

Loading…
Cancel
Save