-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(draggable): namespace events with unique ids
Until now if you had multiple instances of Draggable in the same page, when destroying one of them, all of the events binded to other instances were also destroyed. So, we are namespacing event names with unique id’s per instance to ensure only that only the corresponding events are unbinded. The other solution is to cache references to the event handlers, but most of them are proxied or throttled which makes more mess...
- Loading branch information
Showing
1 changed file
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters