Created
November 12, 2013 05:19
-
-
Save felixlaumon/7425875 to your computer and use it in GitHub Desktop.
jquery-fastdom-promise
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.when($('#id').height(), $('#id').width(), function (height, width) { | |
}); | |
// instead of | |
$('#id').height(function (height) { | |
$('#id').width(function (width) { | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sexy! So what do the new async methods need to return to make this APi possible? Can you give an example of internals?