From a28d616e109645e1ea31590d980294a87486d900 Mon Sep 17 00:00:00 2001 From: JiaLiPassion Date: Fri, 3 Nov 2017 08:06:06 +0900 Subject: [PATCH] fix(core): __symbol__ should return __zone_symbol__ without zone.js loaded (#19541) --- packages/platform-browser/src/dom/events/dom_events.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/platform-browser/src/dom/events/dom_events.ts b/packages/platform-browser/src/dom/events/dom_events.ts index a80ea82bb2..3eec5178fc 100644 --- a/packages/platform-browser/src/dom/events/dom_events.ts +++ b/packages/platform-browser/src/dom/events/dom_events.ts @@ -22,9 +22,9 @@ import {EventManagerPlugin} from './event_manager'; * addEventListener by 3x. */ const __symbol__ = - (typeof Zone !== 'undefined') && (Zone as any)['__symbol__'] || function(v: T): T { - return v; -}; + (typeof Zone !== 'undefined') && (Zone as any)['__symbol__'] || function(v: string): string { + return '__zone_symbol__' + v; + }; const ADD_EVENT_LISTENER: 'addEventListener' = __symbol__('addEventListener'); const REMOVE_EVENT_LISTENER: 'removeEventListener' = __symbol__('removeEventListener');