Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 23rd, 2012  |  syntax: None  |  size: 0.26 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var awesomeLibrary;
  2.  
  3. (function() {
  4.         awesomeLibrary = function() {
  5.                 var i,
  6.                         myNewLibrary = {},
  7.                         modules = awesomeLibrary.modules,
  8.                         mlen = modules.length;
  9.  
  10.                 for (i = 0; i < mlen; i++) {
  11.                         modules[i].call(myNewLibrary);
  12.                 }
  13.         }
  14.  
  15.         awesomeLibrary.modules = [];
  16. }());