Skip to content

Instantly share code, notes, and snippets.

@hannesvdvreken
Created February 14, 2015 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hannesvdvreken/1d8101dd67facfdc6d38 to your computer and use it in GitHub Desktop.
Save hannesvdvreken/1d8101dd67facfdc6d38 to your computer and use it in GitHub Desktop.
function helper(arg1, callback) {
// do something…
callback(data);
}
obj = {
name: 'John Doe',
bar: function() {
helper('foo', function(data) {
console.log(this);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment