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

window.addEventListener not patched on Safari #367

Closed
alxhub opened this issue Jun 28, 2016 · 1 comment
Closed

window.addEventListener not patched on Safari #367

alxhub opened this issue Jun 28, 2016 · 1 comment

Comments

@alxhub
Copy link
Member

alxhub commented Jun 28, 2016

Simple repro: https://plnkr.co/edit/OtpOVa9pXJBWRfoBe0OP?p=preview

Result on Chrome:

window.addEventListener function addEventListener(){return f(this, arguments)}

div.addEventListener function addEventListener(){return f(this, arguments)}

Result on Safari:

window.addEventListener function addEventListener() { [native code] }

div.addEventListener function addEventListener(){return f(this, arguments)}

Note that window.addEventListener is unpatched.

This is for zone.js 0.6.12 release.

@mhevery
Copy link
Contributor

mhevery commented Jun 28, 2016

@alxhub could you create a PR?

alxhub added a commit to alxhub/zone.js that referenced this issue Jun 28, 2016
In browsers without EventTarget, window.addEventListener() is not patched.

Fixes angular#367.
alxhub added a commit to alxhub/zone.js that referenced this issue Jun 28, 2016
In browsers without EventTarget, window.addEventListener() is not patched.

Fixes angular#367.
alxhub added a commit to alxhub/zone.js that referenced this issue Jun 28, 2016
In browsers without EventTarget, window.addEventListener() is not patched.

Fixes angular#367.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants