Skip to content

Instantly share code, notes, and snippets.

@felixlaumon
Created November 12, 2013 05:19
Show Gist options
  • Save felixlaumon/7425875 to your computer and use it in GitHub Desktop.
Save felixlaumon/7425875 to your computer and use it in GitHub Desktop.
jquery-fastdom-promise
$.when($('#id').height(), $('#id').width(), function (height, width) {
});
// instead of
$('#id').height(function (height) {
$('#id').width(function (width) {
});
});
@wilsonpage
Copy link

Sexy! So what do the new async methods need to return to make this APi possible? Can you give an example of internals?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment