diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-01-01 16:12:18 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-01-01 16:12:18 +0000 |
commit | d76df156ce83cd484cc5691c86fecb0e58fab254 (patch) | |
tree | 4de2d212d363ac745bdabd8dd197dfeac7e45f34 /ui/ui.core.js | |
parent | bd58675f47cd6052d147f9a23141680cc1f8e23b (diff) | |
download | jquery-ui-d76df156ce83cd484cc5691c86fecb0e58fab254.tar.gz jquery-ui-d76df156ce83cd484cc5691c86fecb0e58fab254.zip |
Widget Factory: Fixed #3720: Removed use of extra function in jQuery.trigger.
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 9432777d6..05bb427f7 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -375,7 +375,10 @@ $.widget.prototype = { var eventName = (type == this.widgetEventPrefix ? type : this.widgetEventPrefix + type); event = event || $.event.fix({ type: eventName, target: this.element[0] }); - return this.element.triggerHandler(eventName, [event, data], this.options[type]); + + this.element.trigger(event, data); + var ret = (this.options[type] && this.options[type].call(this.element[0], event, data)); + return !event.isDefaultPrevented() && ret !== false; } }; |