Calling a Class function from within a class in Javascript, Jquery
<p>This is what I am trying to do and it isn't working, Error it is showing is : this.run is not a function. on the line ( this.xId = window.setInterval( 'this.run()', 2500 ); )</p>

<pre><code>function(){

   this.run = function(){

      DO SOMETHING;

   }

   this.xId = window.setInterval( 'this.run()', 2500 );

}
</code></pre>

<p>What could be the reason ?</p>
