Skip to content

Instantly share code, notes, and snippets.

@andrewjmead
Last active February 1, 2016 14:39
Show Gist options
  • Save andrewjmead/ba90b162903afe945de1 to your computer and use it in GitHub Desktop.
Save andrewjmead/ba90b162903afe945de1 to your computer and use it in GitHub Desktop.
Nested props this deafult
var a = {
prop: {
nested: function (){
console.log(this);
}
}
}
a.prop.nested() // return { nested: [Function] }, not the top level object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment