get global variable in class
<p>I created a javascript class, and I would like to call a method inside every second, here is my code:</p>

<pre><code>var MyClass = Base.extend({
    myMethod: function() {
        setTimeout(function(){
            var mc = new MyClass();
            mc.myMethod();
        }, 1000);
    }
});
var myGlobalClass = new MyClass();

myGlobalClass.myMethod();
</code></pre>

<p>Actually this code works, but I need to do a <code>new MyClass()</code> every time.<br>
I would had liked using <code>myGlobalClass</code>.</p>

<p>Is this possible ?</p>

<p>Just a precision <code>this.myMethod()</code> can't work in this case, if you thought of that.</p>

<p>Thanks for your help</p>
