title: "dangerous use of the global this object" warning in Google Closure Compiler
body: <p>I have some code that looks like this:</p>
  
  <pre><code>var MyObject = function () {
    this.Prop1 = "";
    this.Prop2 = [];
    this.Prop3 = {};
    this.Prop4 = 0;
  }
  </code></pre>
  
  <p>And then I later have this:</p>
  
  <pre><code>var SomeObject = new MyObject();
  </code></pre>
  
  <p>When I run my code through closure compiler in advanced mode, I'm getting the warning <code>dangerous use of the global this object</code> on every line where I have <code>this.Prop =</code> </p>
  
  <p>What am I doing that's "dangerous" and how should I rewrite my code?</p>
  
  <p>Thanks for your suggestions.</p>