Bug Tracker

Opened 6 years ago

Closed 6 years ago

#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:
Blocked by: Blocking:

Description

Change History (5)

comment:2 Changed 6 years ago by rwaldron

  • Component changed from unfiled to core
  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed

jQuery does not have documented support for native DOM NodeLists

comment:3 Changed 6 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.

Version 2, edited 6 years ago by rkatic (previous) (next) (diff)

comment:4 Changed 6 years ago by john

  • Milestone changed from 1.next to 1.6
  • Priority changed from low to blocker
  • Resolution invalid deleted
  • Status changed from closed to reopened

comment:5 Changed 6 years ago by John Resig

  • Resolution set to fixed
  • Status changed from reopened to closed

Make sure that empty nodelists continue to map properly. Fixes #8993.

Changeset: 6c449fd5df3e0ec50e893d055da9aea486e7d71c

Note: See TracTickets for help on using tickets.