@@ -15,10 +15,15 @@ import {patchTimer} from '../common/timers';
1515import { patchClass , patchMacroTask , patchMethod , patchOnProperties , patchPrototype , zoneSymbol } from '../common/utils' ;
1616
1717import { propertyPatch } from './define-property' ;
18- import { eventTargetPatch } from './event-target' ;
18+ import { eventTargetPatch , patchEvent } from './event-target' ;
1919import { propertyDescriptorPatch } from './property-descriptor' ;
2020import { registerElementPatch } from './register-element' ;
2121
22+ Zone . __load_patch ( 'util' , ( global : any , Zone : ZoneType , api : _ZonePrivate ) => {
23+ api . patchOnProperties = patchOnProperties ;
24+ api . patchMethod = patchMethod ;
25+ } ) ;
26+
2227Zone . __load_patch ( 'timers' , ( global : any , Zone : ZoneType , api : _ZonePrivate ) => {
2328 const set = 'set' ;
2429 const clear = 'clear' ;
@@ -46,6 +51,7 @@ Zone.__load_patch('blocking', (global: any, Zone: ZoneType, api: _ZonePrivate) =
4651} ) ;
4752
4853Zone . __load_patch ( 'EventTarget' , ( global : any , Zone : ZoneType , api : _ZonePrivate ) => {
54+ patchEvent ( global , api ) ;
4955 eventTargetPatch ( global , api ) ;
5056 // patch XMLHttpRequestEventTarget's addEventListener/removeEventListener
5157 const XMLHttpRequestEventTarget = ( global as any ) [ 'XMLHttpRequestEventTarget' ] ;
@@ -240,8 +246,3 @@ Zone.__load_patch('PromiseRejectionEvent', (global: any, Zone: ZoneType, api: _Z
240246 findPromiseRejectionHandler ( 'rejectionhandled' ) ;
241247 }
242248} ) ;
243-
244- Zone . __load_patch ( 'util' , ( global : any , Zone : ZoneType , api : _ZonePrivate ) => {
245- api . patchOnProperties = patchOnProperties ;
246- api . patchMethod = patchMethod ;
247- } ) ;
0 commit comments