javascript attributes store this
<p>Is something like the following possible?</p>

<pre><code>var obj = {
    data:'some data',
    init:function(){
        console.log(this.data);
        console.log(obj.data);
    }
}
obj.init();
</code></pre>

<p>Here, <code>console.log(this.data)</code> and <code>console.log(obj.data)</code> both return the same value.</p>

<p>Is it possible to store <code>this</code> in some variable like I stored <code>'some data'</code> in <code>data</code>?</p>

<p>Let's say somehow we store <code>this</code> in <code>$this</code>. Then, <code>console.log($this.data)</code> should work like <code>console.log(this.data)</code>.</p>
