Permalink
Browse files

Sortable: Fixed _trigger method.

  • Loading branch information...
1 parent 8139c81 commit 3887ee7e2a7d40f6cd73629748b7edcf53e9068d @scottgonzalez scottgonzalez committed Jan 16, 2009
Showing with 5 additions and 2 deletions.
  1. +5 −2 ui/ui.sortable.js
View
@@ -894,8 +894,11 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
_trigger: function(type, event, inst, noPropagation) {
$.ui.plugin.call(this, type, [event, this._uiHash(inst)]);
- if(!noPropagation) $.widget.prototype._trigger.call(this, type, event, this._uiHash(inst));
- if(event && event.result === false) this.cancel();
+ if(!noPropagation) {
+ if ($.widget.prototype._trigger.call(this, type, event, this._uiHash(inst)) === false) {
+ this.cancel();
+ }
+ }
},
plugins: {},

0 comments on commit 3887ee7

Please sign in to comment.