Permalink
Browse files
Sortable: Fixed _trigger method.
- Loading branch information...
Showing
with
5 additions
and
2 deletions.
-
+5
−2
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: {},
|
|
|
|
0 comments on commit
3887ee7