Bug Tracker

Modify

Ticket #5002 (closed bug: duplicate)

Opened 4 years ago

Last modified 3 years ago

$.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:1 Changed 4 years ago by mruzicka

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

ITS FREAKING CRITICAL LINE 666 BUG RAISED FROM HELL!

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

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

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

comment:5 Changed 3 years ago by addyosmani

  • Milestone 1.3.2 deleted

comment:6 Changed 3 years ago by addyosmani

  • Status changed from open to closed
  • Resolution set to duplicate

comment:7 Changed 3 years ago by addyosmani

Duplicate of #2827.

comment:8 Changed 3 years ago by dmethvin

  • Keywords each loop added; each, loop, needsreview removed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.