Skip to content

Instantly share code, notes, and snippets.

@mrvisser
Created December 29, 2013 23:34
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 mrvisser/8176024 to your computer and use it in GitHub Desktop.
Save mrvisser/8176024 to your computer and use it in GitHub Desktop.
var doStuff = function(callback) {
var returnArgs = ['these', 'are', 'my', 'return', 'args'];
// Now I want to invoke `callback` with the `returnArgs`
// callback.apply(XXX, returnArgs) <== What do I replace XXX with to not change the "this" object of the callback?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment