[jQuery] How do I check for the existence of an object?

[jQuery] How do I check for the existence of an object?


I want to create a global object to store some settings in, but only if it
doesn't exist already. If it doesn't exist and I try to use something like
if (myObj == 'undefined') myObj = new Object(); I get an error saying the
object is not defined.
Yeah I should know stuff like this ;)
--
View this message in context: http://www.nabble.com/How-do-I-check-for-the-existence-of-an-object--tf3280307.html#a9123723
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/