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: | ptietz@yoocoz.com | Owned by: | ptietz@yoocoz.com |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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.
Greetings,
P. Tietz
Attachments (0)
Change History (3)
Changed September 05, 2012 02:40PM UTC by comment:1
owner: | → ptietz@yoocoz.com |
---|---|
status: | new → pending |
Changed September 05, 2012 05:17PM UTC by comment:2
status: | pending → new |
---|
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 [[http://www.digitalia.be/software/slimbox2|slimbox2]] triggered the error in line 33.
Regards
Changed September 08, 2012 03:54PM UTC by comment:3
resolution: | → invalid |
---|---|
status: | new → closed |
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.
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: http://jsfiddle.net/FrKyN/. Open the link and click to "Fork" (in the top menu) to get started.