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

addEventListener in strict mode #190

Closed
vicb opened this issue Oct 6, 2015 · 0 comments · Fixed by #191
Closed

addEventListener in strict mode #190

vicb opened this issue Oct 6, 2015 · 0 comments · Fixed by #191

Comments

@vicb
Copy link
Contributor

vicb commented Oct 6, 2015

When addEventListener is called in strict mode, var target = isWebWorker() && !this ? self : this would evaluate to undefined in patchEventTargetMethods() resulting in an error.

Notes:

  • in non strict mode, this would be set to window and there would be no error,
  • window.addEventListener() would work in both strict & non-strict mode.

/ref angular/angular#4531

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

Successfully merging a pull request may close this issue.

1 participant