Posted By

geekyjohn on 07/24/11


Tagged

javascript pattern jquery closure module


Versions (?)

Fresh JavaScript file (With namespaced, closured module pattern)


 / Published in: JavaScript
 

A JavaScript starter with a namespace and closure

  1. $(document).ready(function() {
  2. NAMESPACE.init();
  3. });
  4.  
  5. var NAMESPACE = NAMESPACE || {};
  6.  
  7. NAMESPACE.init();
  8.  
  9. (function($) {
  10.  
  11.  
  12. }(jQuery));

Report this snippet  

You need to login to post a comment.