Skip to main content

Bug Tracker

Side navigation

#12467 closed bug (invalid)

Opened September 05, 2012 11:00AM UTC

Closed September 08, 2012 03:54PM UTC

jQuery each leads to several errors

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:

Hey guys,

i got lots of errors, esp. in IE when using appendTo().

These were caused by trying to get obj.length in jQuery.each() [about line 580] where obj is not an object. I fixed this by adding

if (typeof obj == 'undefined') obj = new Object();

as first line of jQuery.each(). I hope this helps.


P. Tietz

Attachments (0)
Change History (3)

Changed September 05, 2012 02:40PM UTC by timmywil comment:1

owner: →
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery git("edge") version to ensure the issue still exists. To get you started, use this boilerplate: Open the link and click to "Fork" (in the top menu) to get started.

Changed September 05, 2012 05:17PM UTC by comment:2

status: pendingnew

I fear, this will be slightly impossible for me, because it was a large customer's project with a lot of very different JavaScripts. But it looks like [[|slimbox2]] triggered the error in line 33.


Changed September 08, 2012 03:54PM UTC by mikesherov comment:3

resolution: → invalid
status: newclosed

Thanks for contributing! Please speak to the plugins author if you'd like to pursue fixing the issue further, but this is not a bug in Jquery core itself.