Skip to main content

Bug Tracker

Side navigation

#5458 closed bug (duplicate)

Opened November 05, 2009 09:20PM UTC

Closed October 06, 2010 02:31AM UTC

$.fn.trigger fails to apply extra data to callback for live events

Reported by: micah Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: live, trigger, bind, arguments, data Cc:
Blocked by: Blocking:

To reproduce:

$('body').bind('works', function(e, data) {
    console.log('proper args: ', arguments);
}).trigger('works', ['arg2', 'arg3']);

$('body').live('borked', function(e, data) {
    console.log('wrong args: ', arguments);
}).trigger('borked', ['arg2', 'arg3']);

Note that arg2 and arg3 are not passed to the callback for the live event but work properly on the regularly bound one.

Attachments (0)
Change History (2)

Changed December 03, 2009 02:19AM UTC by micah comment:1

Whoops, dupe of #4532

Changed October 06, 2010 02:31AM UTC by addyosmani comment:2

resolution: → duplicate
status: newclosed

Closing due to duplicate.