fix(zone.js): move property patch to legacy (#31660)
Close #31659 PR Close #31660
This commit is contained in:

committed by
Miško Hevery

parent
a182714703
commit
716af1059c
@ -10,6 +10,7 @@
|
||||
* @suppress {missingRequire}
|
||||
*/
|
||||
|
||||
import {propertyPatch} from './define-property';
|
||||
import {eventTargetLegacyPatch} from './event-target-legacy';
|
||||
import {propertyDescriptorLegacyPatch} from './property-descriptor-legacy';
|
||||
import {registerElementPatch} from './register-element';
|
||||
@ -17,6 +18,7 @@ import {registerElementPatch} from './register-element';
|
||||
(function(_global: any) {
|
||||
_global[Zone.__symbol__('legacyPatch')] = function() {
|
||||
const Zone = _global['Zone'];
|
||||
Zone.__load_patch('defineProperty', () => { propertyPatch(); });
|
||||
Zone.__load_patch('registerElement', (global: any, Zone: ZoneType, api: _ZonePrivate) => {
|
||||
registerElementPatch(global, api);
|
||||
});
|
||||
|
Reference in New Issue
Block a user