mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Fixed #3841 - check for $.isFunction before trigger
This commit is contained in:
parent
2809d50800
commit
9d3b03d5f7
@ -375,7 +375,7 @@ $.widget.prototype = {
|
||||
|
||||
this.element.trigger(event, data);
|
||||
|
||||
return !(callback && callback.call(this.element[0], event, data) === false
|
||||
return !($.isFunction(callback) && callback.call(this.element[0], event, data) === false
|
||||
|| event.isDefaultPrevented());
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user