Need help using John Resig’s Simple Javascript Inheritance
<p>John Resig’s Simple Javascript Inheritance: <a href="http://ejohn.org/blog/simple-javascript-inheritance/" rel="nofollow">http://ejohn.org/blog/simple-javascript-inheritance/</a></p>

<p>I tried to do such thing:</p>

<pre><code>var SomeClass = Class.extend({
    init: function() {
        var someFunction = function() {
            alert(this.someVariable);
        };

        someFunction(); // should alert "someString"
    },

    someVariable: "SomeString"
});

var someClass = new SomeClass();
</code></pre>

<p>This should alert "someString", but it doesn't because inside the closure function <strong>someFunction</strong>, the value of <strong>this</strong> doesn't refers to the class, it is changed. <strong>That makes me unable to get access to the properties and functions of the class inside a closure function.</strong></p>

<p>Any suggestions?</p>
