Posted By

DavidAspden on 12/23/08


Tagged

namespace modular


Versions (?)

namespace


 / Published in: JavaScript
 

Include my own library of code snippets all self contained. Allows me to keep my javascript safe and my name makes it mine. This auto initialises when included.

  1. //Creates an object with all my methods in.
  2. var aspden = function(){
  3.  
  4. return {
  5.  
  6. somefunction : function(argument){
  7.  
  8.  
  9. }
  10. }

Report this snippet  

You need to login to post a comment.