r1619 - trunk/ui

r1619 - trunk/ui


Author: scott.gonzalez
Date: Thu Jan 15 18:25:03 2009
New Revision: 1619
Modified:
trunk/ui/ui.sortable.js
Log:
Sortable: Fixed _trigger method.
Modified: trunk/ui/ui.sortable.js
==============================================================================
--- trunk/ui/ui.sortable.js    (original)
+++ trunk/ui/ui.sortable.js    Thu Jan 15 18:25:03 2009
@@ -894,8 +894,11 @@
    _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: {},