Skip to content

Commit

Permalink
Sortable: pass a fake event object to _mouseUp on cancel. Fixes #5882…
Browse files Browse the repository at this point in the history
… - UI.Sortable .sortable( cancel ) call the this._mouseUp method without param.
  • Loading branch information
scottgonzalez committed Jan 19, 2011
1 parent 30c9473 commit cf0c32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.sortable.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit cf0c32f

Please sign in to comment.