Skip to content
Permalink
Browse files
Mouse: Unbind events bound to document on destroy. Fixes #8199 - _mou…
…seDestroy keeps mousemove and mouseup events bound.

(cherry picked from commit 94c6f9e)
  • Loading branch information
scottgonzalez committed Mar 19, 2012
1 parent 5e3ad8f commit a76366f8fc731ec6946d9f6940c8a03040e31d23
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/jquery.ui.mouse.js
@@ -45,6 +45,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 a76366f

Please sign in to comment.