Skip to content

Commit 34cb175

Browse files
committed
fix(): minor fix for event emitter
1 parent 7c06604 commit 34cb175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/app/core/utils/emitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class Emitter {
2323
this.emitter.on(name, handler);
2424

2525
if (scope) {
26-
scope.$on('$destroy', function() {
26+
scope.$on('$destroy', () => {
2727
this.emitter.off(name, handler);
2828
});
2929
}

0 commit comments

Comments
 (0)