Sortable: pass a fake event object to _mouseUp on cancel. Fixes #5882 - UI.Sortable .sortable( cancel ) call the this._mouseUp method without param.

(cherry picked from commit cf0c32f335)
This commit is contained in:
Scott González 2011-01-19 10:45:44 -05:00
parent 904548d5b7
commit 465c4c2cbe

View 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");