aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-01-02 13:06:30 +0000
committerRichard Worth <rdworth@gmail.com>2009-01-02 13:06:30 +0000
commitee76058e01121bd09524a43d2dbc97c12a2e9183 (patch)
treebbc82153c822c64ddcc9aeddb2aa81dabfb84645
parent55e6b8073723c5adddd750c44d4be829b9297b01 (diff)
downloadjquery-ui-ee76058e01121bd09524a43d2dbc97c12a2e9183.tar.gz
jquery-ui-ee76058e01121bd09524a43d2dbc97c12a2e9183.zip
Reverted r1461
-rw-r--r--ui/ui.core.js5
1 files changed, 1 insertions, 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]);
}
};