Fixed #3841 - check for $.isFunction before trigger

This commit is contained in:
Eduardo Lundgren 2009-01-16 04:27:38 +00:00
parent 2809d50800
commit 9d3b03d5f7

View File

@ -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());
}
};