Skip to content

Commit e2db9f8

Browse files
committed
fix angular#835, add reference to _global
1 parent 984c77e commit e2db9f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/common/events.ts

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export const ZONE_SYMBOL_PREFIX = '__zone_symbol__';
2929

3030
const EVENT_NAME_SYMBOL_REGX = /^__zone_symbol__(\w+)(true|false)$/;
3131

32+
const _global =
33+
typeof window !== 'undefined' && window || typeof self !== 'undefined' && self || global;
34+
3235
export interface PatchEventTargetOptions {
3336
validateHandler?: (nativeDelegate: any, delegate: any, target: any, args: any) => boolean;
3437
addEventListenerFnName?: string;

0 commit comments

Comments
 (0)