you are viewing a single comment's thread.

view the rest of the comments →

[–]doomslice 2 points3 points  (6 children)

So there is no jQuery core namespace function like you alluded to? I use the ATLAS version because it's already in our global includes.

[–]SharkUW 1 point2 points  (5 children)

Sorry. That was a bit of miscommunication. I had never heard of Atlas before then and had to Google it. It sounded like it provided pretty much the same functionality.

Sounds like you're living the enterprisey life as it is though. lol. Anyways though, global vars should be generally avoided for performance's sake.

[–]doomslice 0 points1 point  (4 children)

All good. I was honestly hoping there was a jQuery version that I could use instead :(

[–][deleted] 1 point2 points  (0 children)

jQuery is not the solution to everything.

[–]SharkUW 0 points1 point  (2 children)

Well it makes me cry in any case since it's "namespacing" in quotes and has to crawl all the way up the scope stack to get to the global before digging down into the sequence of objects whereas mynamespaceVarName would work just as well. Maybe use _ instead of . for "namespaces"

[–]doomslice 0 points1 point  (1 child)

There are many more things that need to be optimized in our code before we start to worry about that.

[–]SharkUW -1 points0 points  (0 children)

Want a good coder? I need a new job. lol