Skip to content

Commit a76366f

Browse files
committed
Mouse: Unbind events bound to document on destroy. Fixes #8199 - _mouseDestroy keeps mousemove and mouseup events bound.
(cherry picked from commit 94c6f9e)
1 parent 5e3ad8f commit a76366f

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
@@ -45,6 +45,9 @@ $.widget("ui.mouse", {
4545
// other instances of mouse
4646
_mouseDestroy: function() {
4747
this.element.unbind('.'+this.widgetName);
48+
$(document)
49+
.unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
50+
.unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
4851
},
4952

5053
_mouseDown: function(event) {

0 commit comments

Comments
 (0)