Skip to content

Commit

Permalink
[BUGFIX] ES6 classes on/removeListener and observes/removeObserver in…
Browse files Browse the repository at this point in the history
…terop v2

This is a rework of emberjs#16874 which flattens and caches the state of event
listeners more efficiently. Rather than rebuild the result of a
`matchListeners` query each time, including deduping, we flatten the
listeners down the hierarchy of metas the first time an event match is
requested. This still defers the majority of the work early on (adding
listeners is cheap) but also prevents us from having to do the work
again later.
  • Loading branch information
pzuraq committed Sep 27, 2018
1 parent bcdba9b commit 7e1c4be
Show file tree
Hide file tree
Showing 4 changed files with 393 additions and 90 deletions.
Loading

0 comments on commit 7e1c4be

Please sign in to comment.