fix(): minor fix for event emitter

This commit is contained in:
Torkel Ödegaard
2016-04-26 12:39:24 +02:00
parent 7c06604f16
commit 34cb17546d
+1 -1
View File
@@ -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);
});
}