/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var yourNamespace = { foo: function() { }, bar: function() { } } ... yourNamespace.foo();
URL: http://stackoverflow.com/questions/881515/javascript-namespace-declaration