]> source.dussan.org Git - jquery-ui.git/commitdiff
core: trigger() needs to be able to return a value from triggerHandler
authorPaul Bakaus <paul.bakaus@googlemail.com>
Thu, 10 Jul 2008 14:56:19 +0000 (14:56 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Thu, 10 Jul 2008 14:56:19 +0000 (14:56 +0000)
ui/ui.core.js

index 0c8a1164a1b3b53ca67299873cf832c5486abbc7..339d707049b01093e5d1fd4d84c2ecf50b0c9925 100644 (file)
@@ -158,7 +158,7 @@ $.widget.prototype = {
                var eventName = (type == this.widgetEventPrefix
                        ? type : this.widgetEventPrefix + type);
                e = e  || $.event.fix({ type: eventName, target: this.element[0] });
-               this.element.triggerHandler(eventName, [e, data], this.options[type]);
+               return this.element.triggerHandler(eventName, [e, data], this.options[type]);
        }
 };