jQuery.each causes scripts to bomb if there are no settings
bangpound - March 31, 2009 - 01:06
| Project: | jCarousel |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
I'm using jCarousel with callback functions, whose names cannot be passed through drupal_to_js. When I just call jq_add('jcarousel') or jcarousel_add(), the browser javascript bombs with an error and all other scripts on the page never run. This is because you're attempting to run jQuery.each() on a non-existent array.
Here's a patch that gets me through this spot.
| Attachment | Size |
|---|---|
| jcarousel-without-settings.patch | 892 bytes |

#1
How about this?
#2
#3
http://drupal.org/cvs?commit=284670
#4
Automatically closed -- issue fixed for 2 weeks with no activity.