Skip to content
Permalink
Browse files

Fixed #3841 - check for $.isFunction before trigger

  • Loading branch information
eduardolundgren committed Jan 16, 2009
1 parent 2809d50 commit 9d3b03d5f759cd9474427c94e718a6aa6e923beb
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.core.js
@@ -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());
}
};

0 comments on commit 9d3b03d

Please sign in to comment.
You can’t perform that action at this time.