Posted By

dmistriotis on 09/10/10


Tagged

ns


Versions (?)

Namespace Declaration


 / Published in: JavaScript
 

URL: http://stackoverflow.com/questions/881515/javascript-namespace-declaration

  1. var yourNamespace = {
  2.  
  3. foo: function() {
  4. },
  5.  
  6. bar: function() {
  7. }
  8. }
  9.  
  10. ...
  11.  
  12. yourNamespace.foo();

Report this snippet  

You need to login to post a comment.