Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How LinkedIn used Node.js and HTML5 to build a better, faster app. Parent comment
Here's a very simple version (which I admit to still using occasionally)
RequestHandler = { numberOfRequests: 3 makeRequests: function() { var __this = this; a(function() { // Parse Data __this.completeRequest(); }) b(function() { // Parse Data __this.completeRequest(); }) c(function() { // Parse Data __this.completeRequest(); }) }, completeRequest: function() { this.numberOfRequests--; if(this.numberOfRequests == 0 ) this.doDone(); } doDone: function() { // We now have all data, do what we will. } } RequestHandler.makeRequests();
There are no comments on this comment yet.
Here's a very simple version (which I admit to still using occasionally)