From: Scott González Date: Wed, 19 Jan 2011 15:45:44 +0000 (-0500) Subject: Sortable: pass a fake event object to _mouseUp on cancel. Fixes #5882 - UI.Sortable... X-Git-Tag: 1.9m4~38^2~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cf0c32f335479d00224d69f3c5ff53d147a6a8e6;p=jquery-ui.git Sortable: pass a fake event object to _mouseUp on cancel. Fixes #5882 - UI.Sortable .sortable( cancel ) call the this._mouseUp method without param. --- diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js index aa57e3233..dd01e1d63 100644 --- a/ui/jquery.ui.sortable.js +++ b/ui/jquery.ui.sortable.js @@ -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");