aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-01-19 10:45:44 -0500
committerScott González <scott.gonzalez@gmail.com>2011-01-19 10:45:56 -0500
commit465c4c2cbef33fc4491d862245180b6441875c15 (patch)
treec360ab63d63b3ec4a98ad7f3c690b9267a134983
parent904548d5b76be42a6734bc87e7450815927898b9 (diff)
downloadjquery-ui-465c4c2cbef33fc4491d862245180b6441875c15.tar.gz
jquery-ui-465c4c2cbef33fc4491d862245180b6441875c15.zip
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 cf0c32f335479d00224d69f3c5ff53d147a6a8e6)
-rw-r--r--ui/jquery.ui.sortable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js
index 34cba4272..5ba82c312 100644
--- a/ui/jquery.ui.sortable.js
+++ b/ui/jquery.ui.sortable.js
@@ -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");