yes, var self = this, foo = self; is what you'd need.