Closed
Description
In this line (and some other), event listener is unbind in this way:
$document.off('mousemove');
The problem is that it removes all the listener on the page and so, it can break other plugins using this event.
The good practice is to namespace your event like this:
$document.on('mousemove.rzslider', angular.bind(this, this.onMove, pointer));
//and later
$document.off('mousemove.rzslider');
Metadata
Metadata
Assignees
Labels
No labels