Modify ↓
Ticket #5002 (closed bug: duplicate)
$.EACH utility LENGTH property bug
| Reported by: | mruzicka | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | core | Version: | 1.3.2 |
| Keywords: | each loop length | Cc: | |
| Blocking: | Blocked by: |
Description
When using $.each utility on object with .length property $.each function fails to run.
Change History
comment:2 Changed 4 years ago by xpuu
Probably fixed in SVN now http://dev.jquery.com/ticket/2827
But still this seems to me quite weirdo way, how to find out, that something is not array...
| jQuery.isFunction(object) |
aflesler 20.6.2009 16:51:19 jquery core: Closes #2827. jQuery.each iterates over functions
comment:3 Changed 4 years ago by dmethvin
- Priority changed from critical to major
- Component changed from unfilled to core
$.each wants to treat array-like objects as arrays, e.g. nodelists and function arguments.
comment:4 Changed 3 years ago by addyosmani
- Keywords needsreview added
- Status changed from new to open
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.

When using $.each utility on object with .length property $.each function fails to run.
ITS FREAKING CRITICAL LINE 666 BUG RAISED FROM HELL!