title: Getting scope of function caller
body: <p>I have a function that breaks somewhere in Line 1433 of ExtJS.</p>
  
  <pre><code>var createDelayed = function(h, o, scope){
  console.log(arguments); //logs undefined all round. 
      return function(){
          var args = Array.prototype.slice.call(arguments, 0);
          setTimeout(function(){
              h.apply(scope, args);
          }, o.delay || 10);
      };
  };
  </code></pre>
  
  <p>Is there any way to see what line a function is executed from, from within itself?</p>
  
  <p>(since it's a third party lib, and I cant really do </p>
  
  <pre><code>var me =this;
  </code></pre>
  
  <p>and log <code>me</code>)</p>