jQuery.index cannot index the jQuery object
|Reported by:||ericsk||Owned by:||flesler|
While using jQuery.index like this:
... var target = $(e.target); var target_index = $('.item').index(target); ...
it always returns -1 (i.e. NOT FOUND).
I suggest to apply the patch in the attachment to core.js (revision 5375).
Change History (8)
Changed 8 years ago by ericsk
comment:4 Changed 8 years ago by flesler
- need changed from Review to Commit
- Owner set to flesler
- Status changed from new to assigned
Changed 8 years ago by flesler
comment:5 Changed 8 years ago by flesler
- Resolution set to fixed
- Status changed from assigned to closed