Change (or) Alter scope of a function, within the function in javascript
<p>As the question says,</p>

<p>I want to know that if there a way to change scope of a function like this,</p>

<pre><code>function foo(){
    var t = this;
    log(t);//{bar:'baz'}
    /*** Do something over here to change the scope ***/
    var newThis = this;
    log(newThis); //{something:'somethingelse'}
}
</code></pre>

<p>I am just curious to know, if there is a way.</p>

<p>Thanks</p>
