On 29 September 2011 14:51, Brams <ibrahim.ba...@gmail.com> wrote:
> skilldrick, Yes of course you're right, i mixed things up since im
> generating the JSON string on the server-side and then using JS array on the
> client-side (bla bla bla long story) but thx anyway....
>
>
> Sime Vidas, I see your point, but how is that better than the 2 options i
> presented? Is it better? why use your option and not one of the 2 that i
> provided?

I agree with Šime - a single global variable is better than multiple
global variables. If you namespace your entire app under a single
global variable, then your 'global' array can just be a top level
member of your namespace.

-- 
Nick Morgan
http://skilldrick.co.uk
@skilldrick

Save our in-boxes! http://emailcharter.org

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to