From 3887ee7e2a7d40f6cd73629748b7edcf53e9068d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 16 Jan 2009 02:25:03 +0000 Subject: [PATCH] Sortable: Fixed _trigger method. --- ui/ui.sortable.js | 7 +++++-- 1 file 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: {}, -- 2.39.5