title: Scope Regarding "use strict" and $this
body: <p>I have the following code</p>
  
  <pre><code>$(document).ready(function($) {
     "use strict";
     generalClass = function() {
  
     this.ip               = false; // page page
     this.ie               = false; // IE
     this.pp               = false; // portfolio page
     this.om               = false; // organize menu
     this.wc               = false; // shop
     this.sh               = false; // side header
  
     // So we can get the correct $this if needed
     $this               = this;
  
     this.__init();
  
  } 
  
  generalClass.prototype = {
  
     __init: function( $check ) {
  
      // Run functions
      $this.__format();
      $this.__resize(); 
     }
  }
  });
  </code></pre>
  
  <p>But I am getting that <code>$this</code> is undefined. I have tried writing it as var $this but still it is undefined for <code>$this.__format();</code>. I realise that I can use this instead of <code>$this</code>, but there are instances later in the code where I can't. How do I make it so that <code>$this</code> is defined in the <code>__init()</code> function? So that it refers to generalClass.</p>
  
  <p>Thanks!</p>