fix(core): __symbol__ should return __zone_symbol__ without zone.js loaded (#19541)
This commit is contained in:
parent
613a9e3672
commit
a28d616e10
|
@ -22,9 +22,9 @@ import {EventManagerPlugin} from './event_manager';
|
||||||
* addEventListener by 3x.
|
* addEventListener by 3x.
|
||||||
*/
|
*/
|
||||||
const __symbol__ =
|
const __symbol__ =
|
||||||
(typeof Zone !== 'undefined') && (Zone as any)['__symbol__'] || function<T>(v: T): T {
|
(typeof Zone !== 'undefined') && (Zone as any)['__symbol__'] || function(v: string): string {
|
||||||
return v;
|
return '__zone_symbol__' + v;
|
||||||
};
|
};
|
||||||
const ADD_EVENT_LISTENER: 'addEventListener' = __symbol__('addEventListener');
|
const ADD_EVENT_LISTENER: 'addEventListener' = __symbol__('addEventListener');
|
||||||
const REMOVE_EVENT_LISTENER: 'removeEventListener' = __symbol__('removeEventListener');
|
const REMOVE_EVENT_LISTENER: 'removeEventListener' = __symbol__('removeEventListener');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue