How to access 'this' with setinterval
<p>I tried to access 'this' after the implement of setinterval function, but couldn't access this from the function. Illustrated as below:</p>

<pre><code>apple:'apple',
orange:'orange',
pie:'pie',
initialize:function(){
    var self = this;
    setInterval(this.print(),100);
},
print:function(){
    console.log('print '+ this.apple + ' - ' + this.orange + ' - ' + this.pie);
}    
</code></pre>

<p><strong>Output</strong>: undefined</p>

<p>If I pass in the this as parameter for the function, the interval only called once and stop.</p>

<pre><code>apple:'apple',
orange:'orange',
pie:'pie',
initialize:function(){
    var self = this;
    setInterval(this.print(this),100);
},
print:function(self){
    console.log('print '+ self.apple + ' - ' + self.orange + ' - ' + self.pie);
}    
</code></pre>

<p><strong>Output</strong>: print apple - orange - pie (stopped after that)</p>

<p>How would I able to access the 'this' variables, after I called setinterval?</p>

<p>Here's the <a href="http://jsfiddle.net/mochatony/bwB9W/18/" rel="nofollow">jsfiddle example</a>.</p>
