Skip to content

Instantly share code, notes, and snippets.

@sivy
Created December 1, 2010 15:42
Show Gist options
  • Select an option

  • Save sivy/723654 to your computer and use it in GitHub Desktop.

Select an option

Save sivy/723654 to your computer and use it in GitHub Desktop.
SomeObject.prototype.do_thing = function () {
var lib = require('somelib');
// this == the object I assume
libdo_thing().on('success', function(err, results){
// what is the value of "this" here?
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment