#11573 closed bug (duplicate)
[jQuery.each] gives wrong result when a object adds a property [length].
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | misc | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
var testEachObj = {length : 2}; $.each(testEachObj, function(key, value){
console.log('key = ' + key); console.log('value = ' + value);
});
the firebug logs: key = 0 value = undefined key = 1 value = undefined
expect log should be: key = length value = 2
Change History (2)
comment:1 Changed 11 years ago by
Component: | unfiled → misc |
---|---|
Priority: | undecided → low |
Resolution: | → duplicate |
Status: | new → closed |
comment:2 Changed 11 years ago by
Note: See
TracTickets for help on using
tickets.
Duplicate of #7260.