feat(zone.js): move MutationObserver/FileReader to different module (#31657)

Separate `EventTarget`, `FileReader`, `MutationObserver` and `IntersectionObserver` patches into different module.
So the user can disable those modules separately.

PR Close #31657
This commit is contained in:
JiaLiPassion
2019-07-19 23:14:28 +09:00
committed by Michael Prentice
parent 54679ea9cc
commit 788532dc99
3 changed files with 29 additions and 1 deletions

View File

@ -325,6 +325,21 @@ interface ZoneGlobalConfigurations {
*/
__Zone_disable_EventTarget?: boolean;
/**
* Disable the monkey patch of the browser `FileReader` APIs.
*/
__Zone_disable_FileReader?: boolean;
/**
* Disable the monkey patch of the browser `MutationObserver` APIs.
*/
__Zone_disable_MutationObserver?: boolean;
/**
* Disable the monkey patch of the browser `IntersectionObserver` APIs.
*/
__Zone_disable_IntersectionObserver?: boolean;
/**
* Disable the monkey patch of the browser onProperty APIs(such as onclick).
*