Skip to content

Instantly share code, notes, and snippets.

View caseymorrisus's full-sized avatar
🏠
Working from home

Casey Morris caseymorrisus

🏠
Working from home
View GitHub Profile
@daniel-aranda
daniel-aranda / README.md
Last active February 25, 2016 06:05
Node.js :: This is how you should use anonymous functions if you do not want to lose the scope of this

Traditional callbacks:

asyncObject.method(function(){
  //TODO: stuff
});

Binding the scope to currentObject