bebraw
11/9/2010 - 10:06 AM

scope.js

...
bar: 'heya',
someMethod: function() {
  var scope = this;

  function foo() {
    console.log(scope.bar);
    // this points now to current ctx
  }

  foo();
}