Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

fix(core): fix #978, should be able to clear onhandler added before zone.js#981

Merged
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:onevent
Dec 27, 2017
Merged

fix(core): fix #978, should be able to clear onhandler added before zone.js#981
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:onevent

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Collaborator

fix #978.

The issue can be described as

  1. before load zone.js, add handler to onprop, such as elem.onload=function() {};.
  2. load zone.js.
  3. clear, elem.onload = null.
  4. elem.onload is not cleared.

We need try to clear the onprop with the non-patched descriptor.

@JiaLiPassion JiaLiPassion force-pushed the onevent branch 2 times, most recently from ea7f61b to dfa1bca Compare December 20, 2017 04:51
@mhevery mhevery merged commit 8114765 into angular:master Dec 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monkey patching a load event is causing an infinite loading in IE11 after using loadCSS

3 participants