Skip to content

Commit

Permalink
Fixed #3841 - check for $.isFunction before trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolundgren committed Jan 16, 2009
1 parent 2809d50 commit 9d3b03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.core.js
Expand Up @@ -375,7 +375,7 @@ $.widget.prototype = {


this.element.trigger(event, data); 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()); || event.isDefaultPrevented());
} }
}; };
Expand Down

0 comments on commit 9d3b03d

Please sign in to comment.