Modify ↓
Ticket #8993 (closed bug: fixed)
jQuery.map( emptyNodeList ) enumerating properties.
| Reported by: | rkatic | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.6 |
| Component: | core | Version: | 1.5.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Change History
comment:2 Changed 2 years ago by rwaldron
- Priority changed from undecided to low
- Resolution set to invalid
- Status changed from new to closed
- Component changed from unfiled to core
jQuery does not have documented support for native DOM NodeLists
comment:3 Changed 2 years ago by rkatic
There is no mention of NOT supporting native DOM NodeLists neither.
"Array-like objects, such as jQuery collections, are treated as arrays. In other words, if an object has a .length property and a value on the .length - 1 index, it is traversed as an array."
Ah yea, it's because of #9023, how silly of me.
comment:4 Changed 2 years ago by john
- Priority changed from low to blocker
- Status changed from closed to reopened
- Resolution invalid deleted
- Milestone changed from 1.next to 1.6
comment:5 Changed 2 years ago by John Resig
- Status changed from reopened to closed
- Resolution set to fixed
Make sure that empty nodelists continue to map properly. Fixes #8993.
Changeset: 6c449fd5df3e0ec50e893d055da9aea486e7d71c
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Patch: https://github.com/jquery/jquery/pull/356