Browse files

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 cf0c32f)
  • Loading branch information...
1 parent 904548d commit 465c4c2cbef33fc4491d862245180b6441875c15 @scottgonzalez scottgonzalez committed Jan 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.sortable.js
View
2 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");

0 comments on commit 465c4c2

Please sign in to comment.