Skip to content

Instantly share code, notes, and snippets.

@tj
Created July 15, 2009 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tj/147830 to your computer and use it in GitHub Desktop.
Save tj/147830 to your computer and use it in GitHub Desktop.
obj = {
a : function(){
print('im a')
},
b : function(){
var self = this
print('im b')
function c(){
self.a()
}
c()
}
}
obj.b() // => im b\n im a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment