title: Is it possible to get the caller context in javascript?
body: <pre><code>var test = {
      demo: function(){
        //get the caller context here
      }
  }
  //when this gets called, the caller context should be window.
  test.demo();
  </code></pre>
  
  <p>I tried <code>arguments.callee</code> and <code>arguments.callee.caller</code>,and no luck...</p>