Tag: jquery

jQuery Namespace Plug-in

When I am doing JavaScript development, I prefer to put all my code under specific namespaces. For instance, if I am doing a personal project, I’ll stick everything under a “core” space, and build additional spaces underneath such as “Comments”, “Utils”, etc. The problem with this approach is, every time a new namespace is being created, I have to check to make sure every space before it is already there. So I ended up writing a very simple jQuery plug-in that takes care of this task for me.

Read more »