diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-03-19 09:47:38 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-03-19 09:47:59 -0400 |
commit | a76366f8fc731ec6946d9f6940c8a03040e31d23 (patch) | |
tree | 8b55580fde29632dc8c2f885d6d7788f3405509b /ui | |
parent | 5e3ad8f160dfa8b5a84c50b493eb2245789a8400 (diff) | |
download | jquery-ui-a76366f8fc731ec6946d9f6940c8a03040e31d23.tar.gz jquery-ui-a76366f8fc731ec6946d9f6940c8a03040e31d23.zip |
Mouse: Unbind events bound to document on destroy. Fixes #8199 - _mouseDestroy keeps mousemove and mouseup events bound.
(cherry picked from commit 94c6f9ec84acc4c01f2dc16c009e2cf7a0fdbc5d)
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.mouse.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.mouse.js b/ui/jquery.ui.mouse.js index a0068759f..1767de8fb 100644 --- a/ui/jquery.ui.mouse.js +++ b/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) { |