title: Define 'this' keyword in a variable
body: <p>I have a function in the following format:</p>
  
  <pre><code>var obj = {
      doSomething: function(){
          this.callSomething();
      },
      callSomething: function(){
          this.doThis();
          this.andDoThis();
      },
      doThis: function(){
          if(!this.bln){
              this.bln = true;
          }
          // some code here
      },
      andDoThis: function(){
          if(this.bln){
              // some code here
          }
      }
  }
  obj.doSomething();
  </code></pre>
  
  <p>As you can see in the above code, I am using <code>this</code> keyword many times to call a function or a <code>obj</code> scoped variables. </p>
  
  <p>Instead of using <code>this</code> keyword, I want to use something of single letter like:</p>
  
  <pre><code>var s = this;    // so that I can use "s" instead of "this" everywhere
  </code></pre>
  
  <p>How can I do this?</p>
  
  <p>PS: Here <code>obj</code> object name is just for example purpose. In real scenario, the object name is longer than <code>this</code> keyword.</p>