mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Widget Factory: Fixed #3720: Removed use of extra function in jQuery.trigger.
This commit is contained in:
parent
bd58675f47
commit
d76df156ce
@ -375,7 +375,10 @@ $.widget.prototype = {
|
||||
var eventName = (type == this.widgetEventPrefix
|
||||
? type : this.widgetEventPrefix + type);
|
||||
event = event || $.event.fix({ type: eventName, target: this.element[0] });
|
||||
return this.element.triggerHandler(eventName, [event, data], this.options[type]);
|
||||
|
||||
this.element.trigger(event, data);
|
||||
var ret = (this.options[type] && this.options[type].call(this.element[0], event, data));
|
||||
return !event.isDefaultPrevented() && ret !== false;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user