Skip to content

Instantly share code, notes, and snippets.

@maxp
Created February 24, 2012 15:48
Show Gist options
  • Select an option

  • Save maxp/1901689 to your computer and use it in GitHub Desktop.

Select an option

Save maxp/1901689 to your computer and use it in GitHub Desktop.
// http://habrahabr.ru/blogs/javascript/138773/
function deferrable(f) {
return function() {
return (function(f, args) {
return function() { return f.apply(null, args); };
})(f, arguments);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment