Hi,

The JS example in the 'Creating Visualizations' tutorial (http://
code.google.com/apis/visualization/documentation/dev/
index.html#implementevents) breaks when compiled with closure in
Advanced Mode: http://closure-compiler.appspot.com/home

Paste the JS code, choose 'Advanced' and click 'Compile'. It won't
compile due to 4 Warnings:
Number of warnings: 4
JSC_USED_GLOBAL_THIS: dangerous use of the global this object at line
7 character 2
this.containerElement = container;
^
JSC_UNSAFE_THIS: dangerous use of this in static method
example.MyTable at line 7 character 2
this.containerElement = container;
^
JSC_PARSE_ERROR: Parse error. Unknown type example.MyTable at line 14
character 0
example.MyTable.prototype.draw = function(data, options) {
^
JSC_PARSE_ERROR: Parse error. Unknown type example.MyTable at line 51
character 0
example.MyTable.prototype.escapeHtml = function(text) {
^

Cheers,
Dieter

--

You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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