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

addEventListener in strict mode #190

@vicb

Description

@vicb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions