You are reading a single comment by @DaveNI and its replies. Click here to read the full conversation.
  • @Gordon : That worked out perfectly, just what I needed: A couple of extra lines of code saved me about 100 variable blocks!! AND i can use long/descriptive variable & function names since the minifier is now free to do its magic!!

    Anyone having "out of memory" issues should try this pattern:

    var onInit = function(){
          var aaa, bbb, ccc;
    
          function one(){
          }
          function two(){
          }
          function three(){
          }
          //all your normal onInit code here 
          one();
    
          delete onInit; //This is the key to saving memory
           //onInit = unassigned; //also works
    }
    onInit();
    

    I am now going to try it on a few of my modules to see if it helps there too.

About

Avatar for DaveNI @DaveNI started