mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Reverted r1461
This commit is contained in:
parent
55e6b80737
commit
ee76058e01
@ -375,10 +375,7 @@ $.widget.prototype = {
|
||||
var eventName = (type == this.widgetEventPrefix
|
||||
? type : this.widgetEventPrefix + type);
|
||||
event = event || $.event.fix({ type: eventName, target: this.element[0] });
|
||||
|
||||
this.element.trigger(event, data);
|
||||
var ret = (this.options[type] && this.options[type].call(this.element[0], event, data));
|
||||
return !event.isDefaultPrevented() && ret !== false;
|
||||
return this.element.triggerHandler(eventName, [event, data], this.options[type]);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user