Opened 17 years ago
Last modified 16 years ago
#935 closed bug
Event.data is a global event object — at Initial Version
Reported by: | Nate Cavanaugh | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1.3 |
Component: | event | Version: | 1.1.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The behavior I was expecting was that binding data to an even via .bind(type, data, fn) would store the data relevant to that specific item, rather than a global event object.
A quick example:
$(['test1', 'test2', 'test3']).each(function(){ $('#'+this).bind('change', i, selectOnChange) })
Now, when selectOnChange gets executed, event.data will only contain the latest iterator, which leads me to think that event.data is being stored globally for all onchange events, rather than on a per instance basis.
Would it be possible to store this on a per instance basis?
Note: See
TracTickets for help on using
tickets.