aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-16 02:25:03 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-16 02:25:03 +0000
commit3887ee7e2a7d40f6cd73629748b7edcf53e9068d (patch)
treec03d4671900f41496c0c4a1ff81573dbee726906 /ui/ui.sortable.js
parent8139c81d1b3521c8b8406a3c069c1c8829b05abe (diff)
downloadjquery-ui-3887ee7e2a7d40f6cd73629748b7edcf53e9068d.tar.gz
jquery-ui-3887ee7e2a7d40f6cd73629748b7edcf53e9068d.zip
Sortable: Fixed _trigger method.
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r--ui/ui.sortable.js7
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: {},