From 34cb17546dc94f16a4afbfaf1b05ffb27e520d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 26 Apr 2016 12:39:24 +0200 Subject: [PATCH] fix(): minor fix for event emitter --- public/app/core/utils/emitter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/utils/emitter.ts b/public/app/core/utils/emitter.ts index 5f3f61cca2e..4cdc19e7b20 100644 --- a/public/app/core/utils/emitter.ts +++ b/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); }); }