Skip to content

Commit 94c6f9e

Browse files
committed
Mouse: Unbind events bound to document on destroy. Fixes #8199 - _mouseDestroy keeps mousemove and mouseup events bound.
1 parent 99fd851 commit 94c6f9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/jquery.ui.mouse.js

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ $.widget("ui.mouse", {
4646
// other instances of mouse
4747
_mouseDestroy: function() {
4848
this.element.unbind('.'+this.widgetName);
49+
$(document)
50+
.unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
51+
.unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
4952
},
5053

5154
_mouseDown: function(event) {

0 commit comments

Comments
 (0)