Skip to main content

Bug Tracker

Side navigation

#5002 closed bug (duplicate)

Opened August 03, 2009 12:17AM UTC

Closed October 28, 2010 04:15AM UTC

Last modified November 02, 2010 02:07AM UTC

$.EACH utility LENGTH property bug

Reported by: mruzicka Owned by:
Priority: major Milestone:
Component: core Version: 1.3.2
Keywords: each loop length Cc:
Blocked by: Blocking:
Description

When using $.each utility on object with .length property $.each function fails to run.

Attachments (0)
Change History (8)

Changed August 03, 2009 12:29AM UTC by mruzicka comment:1

When using $.each utility on object with .length property $.each function fails to run.

ITS FREAKING CRITICAL LINE 666 BUG RAISED FROM HELL!

Changed August 03, 2009 12:47AM UTC by xpuu comment:2

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...

core.js: 356: isObj = length === undefined || jQuery.isFunction(object)

aflesler 20.6.2009 16:51:19

jquery core: Closes #2827. jQuery.each iterates over functions

Changed August 09, 2009 12:43AM UTC by dmethvin comment:3

component: unfilledcore
priority: criticalmajor

$.each wants to treat array-like objects as arrays, e.g. nodelists and function arguments.

Changed October 28, 2010 04:11AM UTC by addyosmani comment:4

keywords: each, loop, lengtheach, loop, length needsreview
status: newopen

Changed October 28, 2010 04:11AM UTC by addyosmani comment:5

milestone: 1.3.2

Changed October 28, 2010 04:15AM UTC by addyosmani comment:6

resolution: → duplicate
status: openclosed

Changed October 28, 2010 04:15AM UTC by addyosmani comment:7

Duplicate of #2827.

Changed November 02, 2010 02:07AM UTC by dmethvin comment:8

keywords: each, loop, length needsrevieweach loop length