Created
March 29, 2015 15:45
-
-
Save vgaltes/1786e077d8c161c097c4 to your computer and use it in GitHub Desktop.
This example 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var aObject = { | |
aFunction: function(){ | |
console.log(this); | |
var that = this; | |
var anotherFunction = function(){ | |
console.log(that); | |
var yetAnotherFunction = function(){ | |
console.log(that); | |
}(); | |
}(); | |
} | |
} | |
aObject.aFunction(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment