Permalink
Browse files

Fixed #3841 - check for $.isFunction before trigger

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