mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-05 22:54:56 -05:00
Sortable: Fixed _trigger method.
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user