[CLEANUP] Remove deprecated mouse events#19529
[CLEANUP] Remove deprecated mouse events#19529btecu wants to merge 1 commit intoemberjs:v4-cleanupfrom
Conversation
simonihmig
left a comment
There was a problem hiding this comment.
Merging #19227 has caused some conflicts here, sorry about that! 😉
One test is failing in CI, I haven't really been able to identify it by looking through the logs though...
| // Mimics the way this is handled in jQuery, | ||
| // see https://github.com/jquery/jquery/blob/899c56f6ada26821e8af12d9f35fa039100e838e/src/event.js#L666-L700 | ||
| if (MOUSE_ENTER_LEAVE_MOVE_EVENTS && EVENT_MAP[event] !== undefined) { | ||
| if (EVENT_MAP[event] !== undefined) { |
There was a problem hiding this comment.
You can delete the whole if-block here, as that does the special handling of these non-bubbling events, and only leave the else-block instead. The (now removed) MOUSE_ENTER_LEAVE_MOVE_EVENTS feature flag can effectively be seen as being always false, so in that way this if-block is basically dead code. Also the EVENT_MAP itself can be removed.
There was a problem hiding this comment.
Thanks @simonihmig, I've removed the entire if block.
6a3a440 to
2b618a8
Compare
|
Due to some complications with 3.27's migration to use real modules (and the resulting massive number of deprecations being triggered) we are not 100% certain (yet) that 4.0 will be the version just after v3.28. In order to move ahead with v4.0 cleanup efforts (like this one), I've pushed a new branch that can serve as the target for breaking change PR's: https://github.com/emberjs/ember.js/tree/v4-cleanup. I've updated this PR to target that branch, can you rebase against that branch and push an update? Expand for an example of the commands needed for that rebase.Those steps should be roughly what you need, but might need some tweaks based on your local repository setup (e.g. if you don't use Thank you for helping us push things forward! |
|
@btecu this PR was auto-closed when v4-cleanup was merged to master. Can you re-open for us to review/merge against master? This is excellent work and I don't want to lose it. |
No description provided.