]> 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:44 +0000 (10:45 -0500)
ui/jquery.ui.sortable.js

index aa57e3233e3423da330719e6d8bc4d3d9e22d29c..dd01e1d6390d334a4a963ec4f77608d6897d7b68 100644 (file)
@@ -359,7 +359,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");