title: window.setInterval not working
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8732191/setinterval-only-running-function-once">setInterval() only running function once</a>  </p>
  </blockquote>
  
  
  
  <p>I'm using the following script to understand the concept of function context. I'm excepting the alerts to start from 20 onwards and repeat. But it goes quite after displaying 20.
  When using call method and providing the o2, it should get the value 20 and repeat from there on.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      var o2 = {
          local: 20
      }
      var local=0;
      function someFuncObject(){
          alert('Thats method object again ' + this.local++);
      }
   // window.setInterval(someFuncObject, 2000); //This works perfect!!!
      window.setInterval(someFuncObject.call(o2), 2000); // This does not, why?
  &lt;/script&gt;
  </code></pre>
  
  <p>On the otherhand if I use <code>window.setInterval(someFuncObject, 2000);</code> it works fine and repeats again and again. What's the problem?</p>