diff options
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r-- | ui/ui.sortable.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index 49387a442..77c2678e2 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -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: {}, |