Skip to content

Instantly share code, notes, and snippets.

@kpdecker
Created November 26, 2013 05:19
Show Gist options
  • Save kpdecker/7653823 to your computer and use it in GitHub Desktop.
Save kpdecker/7653823 to your computer and use it in GitHub Desktop.
'passing': function (done) {
var a = function (self, x, callback) {
return callback(self, x + 10);
};
var B = function () {
this.y = 10;
};
B.prototype.go = function () {
a(this, 10, function (self, value) {
self.y += value;
done();
});
};
var b = new B();
b.go();
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment