Created
October 1, 2011 10:13
-
-
Save jensarps/1255839 to your computer and use it in GitHub Desktop.
Using features
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
define(['feature!async-promise'],function(embed){ | |
// Now you have embed.Promise available! | |
}) | |
// All features return the same object, so that you | |
// can do the following: | |
define(['feature!async-promise', 'feature!html-element'], function(embed){ | |
// All methods provided by the html-element feature are now | |
// available in the object returned by the async-promise feature, | |
// too | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment