Dude, you rock!

I suppose this thread should be renamed "weird behavior in Chrome/IE," 
then.  So, doing as you suggest, the function executes properly in all 
browsers.  The problem now is that they all throw errors when you pass a 
closure to #addListener():

FF:
Error: a is not a function
Source File: 
http://www.google.com/uds/api/visualization/1.0/6ceef8f4137a389d7745e173bfc981e5/format+en,default,corechart.I.js
Line: 170

Chrome:
"undefined is not a function"

IE:
"Object expected"

This occurs regardless of whether you pass the closure in a loop or not, 
and whether or not there is anything in the function itself.  I plopped one 
of these into a jsfiddle as a test case: http://jsfiddle.net/zeXg6/

I solved the problem by wrapping the #addListener call in the closure 
instead: http://jsfiddle.net/zeXg6/1/

It looks ugly, but it works.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/0jUuXw-os_sJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to