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 has issues with a null callback #198

@alxhub

Description

@alxhub
Uncaught TypeError: Cannot read property 'toString' of null
obj.addEventListener @ angular2.dev.js:1068
Gestures.add @ polymer.html:752

Polymer adds a null listener to the 'tap' event on document (something about enabling document-wide listeners):

// enable document-wide tap recognizer
if (event === 'tap') {
  Polymer.Gestures.add(document, 'tap', null);
}

Unfortunately zone.js's addEventListener has issues with a null callback, and throws a few exceptions (calling toString() on the callback and trying to set properties on it).

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