Reverted r1461

This commit is contained in:
Richard Worth 2009-01-02 13:06:30 +00:00
parent 55e6b80737
commit ee76058e01

View File

@ -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]);
}
};