title: Nested function inside literal Object
body: <p>if in a literal object i try to reference a function using "this" inside a nested property/function, this don't work. Why? A nested property have it's own scope?</p>
  
  <p>For example, i want to call f1 from inside d.f2:</p>
  
  <pre><code>var object = {    
  
    a: "Var a",
    b: "Var b",
    c: "Var c",
  
    f1: function() {
      alert("This is f1");
    },
  
    d: {
        f2: function() {
         this.f1();
      }
    },
  
    e: {
        f3: function() {
          alert("This is f3");
       }
    }
  }
  </code></pre>
  
  <p>object.f1();    // Work<br>
  object.d.f2();  // Don't Work.
  object.e.f3();  // Work</p>
  
  <p>Thanks, Andrea.</p>