... bar: 'heya', someMethod: function() { var scope = this; function foo() { console.log(scope.bar); // this points now to current ctx } foo(); }