Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#6108 closed bug (wontfix)

.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/

Change History (2)

comment:1 follow-up: Changed 6 years ago by john

  • Resolution set to wontfix
  • Status changed from new to closed

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.

comment:2 in reply to: ↑ 1 Changed 6 years ago by yanibie

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

Replying to 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.

Note: See TracTickets for help on using tickets.