Skip to content
Permalink
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.
  • Loading branch information
scottgonzalez committed Jan 19, 2011
1 parent 30c9473 commit cf0c32f335479d00224d69f3c5ff53d147a6a8e6
Showing with 1 addition and 1 deletion.
  1. +1 −1 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");

0 comments on commit cf0c32f

Please sign in to comment.
You can’t perform that action at this time.