Skip to content
Permalink
Browse files

Mouse: Unbind events bound to document on destroy. Fixes #8199 - _mou…

…seDestroy keeps mousemove and mouseup events bound.
  • Loading branch information...
scottgonzalez committed Mar 19, 2012
1 parent 99fd851 commit 94c6f9ec84acc4c01f2dc16c009e2cf7a0fdbc5d
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/jquery.ui.mouse.js
@@ -46,6 +46,9 @@ $.widget("ui.mouse", {
// other instances of mouse
_mouseDestroy: function() {
this.element.unbind('.'+this.widgetName);
$(document)
.unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
.unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
},

_mouseDown: function(event) {

0 comments on commit 94c6f9e

Please sign in to comment.
You can’t perform that action at this time.