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

fix(event): ignoreOnProperties also apply on addEventListener#968

Merged
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:blacklist
Dec 27, 2017
Merged

fix(event): ignoreOnProperties also apply on addEventListener#968
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:blacklist

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Collaborator

@JiaLiPassion JiaLiPassion commented Nov 27, 2017

now angular blackList events work for

  • onProperty, such as document.onscroll
  • HostListener, such as @HostListener('document:scroll')

but not for addEventListener such as document.addEventListener('scroll').

in this PR, I use __zone_symbol__BLACK_LISTED_EVENTS to also blacklist addEventListener.

@mhevery mhevery merged commit dffae8b into angular:master Dec 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants