Skip to content

Commit

Permalink
fix(core): __symbol__ should return __zone_symbol__ without zone.js l…
Browse files Browse the repository at this point in the history
…oaded (angular#19541)
  • Loading branch information
JiaLiPassion authored and vicb committed Nov 2, 2017
1 parent 613a9e3 commit a28d616
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/platform-browser/src/dom/events/dom_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import {EventManagerPlugin} from './event_manager';
* addEventListener by 3x.
*/
const __symbol__ =
(typeof Zone !== 'undefined') && (Zone as any)['__symbol__'] || function<T>(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');

Expand Down

0 comments on commit a28d616

Please sign in to comment.