mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-05 19:15:02 -05:00
Fixed #3841 - check for $.isFunction before trigger
This commit is contained in:
@@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user