Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1417 closed bug (fixed)

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:


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

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

Change History (2)

comment:1 Changed 16 years ago by john

Resolution: fixed
Status: newclosed

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

                return "FOO";

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

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

Fixed in SVN rev [2950].

comment:2 Changed 16 years ago by john

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

Note: See TracTickets for help on using tickets.