Ticket #11269 (closed bug: invalid)
Event delegation with .on() will not work when a jQuery object is supplied for the Selector parameter
|Reported by:||warrenparsons||Owned by:|
Event delegation with .on() will not work when a jQuery object is supplied for the Selector parameter.
It seems to ignore the parameter in this case, and skips delegation altogether. The result is that 'this' refers to the object to which .on() is attached, rather than the element(s) specified in the Selector param.
This may be intended behavior, but it is somewhat unexpected.
Test cases: http://jsfiddle.net/tUkwZ/1/
Tested with: 1.7.1 (included with test case), 1.7.2b1 (tested locally)
Verified in: Chrome (current) and Firefox 9.0.1 - both Mac
- Status changed from new to closed
- Resolution set to invalid