diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-01-19 10:45:44 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-01-19 10:45:56 -0500 |
commit | 465c4c2cbef33fc4491d862245180b6441875c15 (patch) | |
tree | c360ab63d63b3ec4a98ad7f3c690b9267a134983 | |
parent | 904548d5b76be42a6734bc87e7450815927898b9 (diff) | |
download | jquery-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.js | 2 |
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"); |