manuelluis / jsrrdgraph

javascript rrdgraph
61 stars 12 forks source link

Various javascript syntax errors and warnings #1

Closed wallrj closed 12 years ago

wallrj commented 12 years ago

Closure compiler highlights a few syntax errors in the current rrd.js module

There are also a few missing ; redefined variables and trailing whitespace.

// ==ClosureCompiler==
// @compilation_level WHITESPACE_ONLY
// @output_file_name default.js
// @code_url https://raw.github.com/wallrj/jsrrdgraph/master/rrd.js
// ==/ClosureCompiler==
JSC_PARSE_ERROR: Parse error. destructuring assignment forbidden at line 3499 character 0 in rrd.js
[dummy, second_axis_symb, second_axis_magfact ] = this.auto_scale(dum...
^
JSC_PARSE_ERROR: Parse error. invalid assignment target at line 3499 character 0 in rrd.js
[dummy, second_axis_symb, second_axis_magfact ] = this.auto_scale(dum..