mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Sortable: Fixed _trigger method.
This commit is contained in:
parent
8139c81d1b
commit
3887ee7e2a
@ -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: {},
|
||||
|
Loading…
Reference in New Issue
Block a user