Skip to content

Instantly share code, notes, and snippets.

@vstarck
Created August 28, 2011 17:06
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 vstarck/1176928 to your computer and use it in GitHub Desktop.
Save vstarck/1176928 to your computer and use it in GitHub Desktop.
defer.execution.js
function say(hey) {
var what = [hey];
setTimeout(function() {
alert(what.join(' '));
}, 0);
return function w(hey) {
what.push(hey);
return w;
}
}
say('Hey')('ho')('lets')('go!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment