You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
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.
When
addEventListeneris called in strict mode,var target = isWebWorker() && !this ? self : thiswould evaluate toundefinedinpatchEventTargetMethods()resulting in an error.Notes:
thiswould be set towindowand there would be no error,window.addEventListener()would work in both strict & non-strict mode./ref angular/angular#4531