zmughal / jsgantt

Automatically exported from code.google.com/p/jsgantt
0 stars 1 forks source link

Remove global variables #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
JSGannt should be the only global variable.

The following seemed to work for me:

Put this on line 34, after the var JSGantt declaration.
(function() {

and the following on line 2348, after all other JS.
})(); 

Also, all variables used without a "var" declaration are global by default.
 Such as the non-declared variables "XMLLoader" and "vYear4Str".

Original issue reported on code.google.com by dev...@gmail.com on 30 Jan 2010 at 12:01