|Reported by:||blq||Owned by:||madair|
Applying the attached patch the most obvious errors are fixed and you get a "successful" compilation. But, I'd say it's better if you do the compilation yourselves and inspect the output step by step to ensure the correctness. There's still a couple of most-likely bugs left although they appear only as warnings. For example use of a "this.phi0", "this.at1" and "c" that doesn't seem to be declared, "this.gam" vs "this.gama", qsfnz() is called with three args but only take two etc.
Here's the command line I used: "java -jar closure.jar --js Proj4js-combined.js --warning_level VERBOSE --js_output_file compiled_proj4s-combined.js"
If you manage to navigate around the massive amounts of "dangerous use of the global this object" warnings you find the more serious bugs!
As a nice side-effect the output from Closure is a 15kb smaller file.
Regards / Fredrik Blomqvist