Skip to main content

Bug Tracker

Side navigation

#1417 closed bug (fixed)

Opened July 21, 2007 09:03PM UTC

Closed August 28, 2007 04:43AM UTC

Last modified August 30, 2007 05:52AM UTC

event.trigger() doesn't return the handle() results

Reported by: john Owned by: john
Priority: major Milestone: 1.2
Component: event Version: 1.1.4
Keywords: Cc:
Blocked by: Blocking:
Description

Returning the results of all method calls, as an array, would probably be ideal.

This will require modification of both .trigger() and .handle().

Attachments (0)
Change History (2)

Changed August 28, 2007 04:43AM UTC by john comment:1

milestone: 1.1.41.2
resolution: → fixed
status: newclosed
version: 1.1.31.1.4

It's now possible to call jQuery's internal trigger and get back the final result, for example:

        $("#test").bind("click",function(e){
                return "FOO";
        });

        console.log( jQuery.event.trigger( "click", null, $("#test")[0] ) );

Results in: "FOO" being sent to the console.

Fixed in SVN rev [2950].

Changed August 30, 2007 05:52AM UTC by john comment:2

Fixed in SVN rev [3008] (for the $().trigger() method).