From ee76058e01121bd09524a43d2dbc97c12a2e9183 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Fri, 2 Jan 2009 13:06:30 +0000 Subject: [PATCH] Reverted r1461 --- ui/ui.core.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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]); } };