Is there a way to declare a global variable in jQuery in its own namespace?
Sure, I can declare global variables with plain old JavaScript, but they will fall in the window
's namespace. For example, if I had a variable named document
, it would surely overwrite the document
object of the window
.
Does jQuery have a hash table that lets you store any object by their name?
Thanks.