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

This commit is contained in:
Scott González 2011-01-19 10:45:44 -05:00
parent 30c9473d8f
commit cf0c32f335

View File

@ -359,7 +359,7 @@ $.widget("ui.sortable", $.ui.mouse, {
if(this.dragging) { if(this.dragging) {
this._mouseUp(); this._mouseUp({ target: null });
if(this.options.helper == "original") if(this.options.helper == "original")
this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"); this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");