Skip to content

Instantly share code, notes, and snippets.

@quirkey
Created September 12, 2010 02:30
Show Gist options
  • Save quirkey/575777 to your computer and use it in GitHub Desktop.
Save quirkey/575777 to your computer and use it in GitHub Desktop.
async: function(fun, callback) {
return this.then(function(content) {
var context = this;
this.wait();
fun(function(response) {
context.next(response);
});
return false;
}).then(callback);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment