Skip to main content

Bug Tracker

Side navigation

#6108 closed bug (wontfix)

Opened February 17, 2010 05:36AM UTC

Closed February 18, 2010 11:22AM UTC

Last modified January 25, 2011 08:36AM UTC

.live(event) does not contain event.data in 1.4.2

Reported by: skyzyx Owned by:
Priority: Milestone: 1.4.2
Component: event Version:
Keywords: Cc:
Blocked by: Blocking:
Description

$(selector).live('click', function(event) {

event.data is undefined

});

Full test case with 1.4.1 and 1.4.2 is at http:ryanparman.com/labs/jquery_event_regression/

Attachments (0)
Change History (2)

Changed February 18, 2010 11:22AM UTC by john comment:1

resolution: → wontfix
status: newclosed

This is correct - the original .data there was never meant to be exposed (we were forced to pass it in because of how the jQuery event system was structured). Note that it doesn't make sense to have data coming in for something that doesn't actually have data on it.

Changed January 25, 2011 08:36AM UTC by yanibie comment:2

how about when you .live register to events like drop that require data ?

Replying to [comment:1 john]:

This is correct - the original .data there was never meant to be exposed (we were forced to pass it in because of how the jQuery event system was structured). Note that it doesn't make sense to have data coming in for something that doesn't actually have data on it.