title: using time out in mootools
body: <p>I try to execute some functions with time out, this is code from class:</p>
  
  <pre><code>while($$('.visos_prekes ul li.simple').length &gt; 0){
      setTimeout(this.destroyByOne(), 5000);
  }
  
  destroyByOne: function(){
      $$('.visos_prekes ul li.simple').each(function(e, key){
          e.destroy();
          if(key &gt; 16){
              return true;
          }
      });
  },
  </code></pre>
  
  <p>but this function executes without time out. What I do wrong?</p>