Snook writes about namespacing your JavaScript code and asks what standards we should adopt and the best way of doing it. It is an important topic. Afterall, we namespace our Java, C# etc. code and think it is important there.
Snook namespaces in the following way:
var snook = new Object();
snook.someFunc = function ()
{...}
snook.anotherFunc = function ()
{...}
Do you know of any other ways to namespace your JavaScript?
Add New Comment
Viewing 3 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks
(Trackback URL)