[javascript-dev] Re: Global variables in .js
John Pitcairn
cycling74forum at opuslocus.net
Thu Feb 21 13:51:27 MST 2008
- Previous message: [javascript-dev] Global variables in .js
- Next message: [javascript-dev] Re: Global variables in .js
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Also, from memory, if you declare a top-level variable without "var" in a .js file, it becomes global to all js objects loading that file, ie: gvar = "check1"; // global to all instances var avar = "check2" // local to this instance
- Previous message: [javascript-dev] Global variables in .js
- Next message: [javascript-dev] Re: Global variables in .js
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
