diff --git a/ui/ui.core.js b/ui/ui.core.js index 05bb427f7..9432777d6 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -375,10 +375,7 @@ $.widget.prototype = { var eventName = (type == this.widgetEventPrefix ? type : this.widgetEventPrefix + type); event = event || $.event.fix({ type: eventName, target: this.element[0] }); - - this.element.trigger(event, data); - var ret = (this.options[type] && this.options[type].call(this.element[0], event, data)); - return !event.isDefaultPrevented() && ret !== false; + return this.element.triggerHandler(eventName, [event, data], this.options[type]); } };