Created
January 14, 2017 13:31
-
-
Save kevjose/c804aacb5b27b714056182b1b5beca4f to your computer and use it in GitHub Desktop.
This file contains 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
var user = { | |
place:'India', | |
data:[ | |
{name:'John', age:20}, | |
{name:'Jane', age:18} | |
], | |
clickHandler: function(){ | |
var usr = this; | |
this.data.forEach(d){ | |
console.log(d.name, usr.place); | |
} | |
} | |
} | |
user.clickHandler(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment