]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable: pass a fake event object to _mouseUp on cancel. Fixes #5882 - UI.Sortable...
authorScott González <scott.gonzalez@gmail.com>
Wed, 19 Jan 2011 15:45:44 +0000 (10:45 -0500)
committerScott González <scott.gonzalez@gmail.com>
Wed, 19 Jan 2011 15:45:56 +0000 (10:45 -0500)
(cherry picked from commit cf0c32f335479d00224d69f3c5ff53d147a6a8e6)

ui/jquery.ui.sortable.js

index 34cba427233d992eea52846d6ca5aaaa4a23aa88..5ba82c3123fdc27d490c48e134e11d415908139e 100644 (file)
@@ -360,7 +360,7 @@ $.widget("ui.sortable", $.ui.mouse, {
 
                if(this.dragging) {
 
-                       this._mouseUp();
+                       this._mouseUp({ target: null });
 
                        if(this.options.helper == "original")
                                this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");