Skip to content

Instantly share code, notes, and snippets.

@jensarps
Created October 1, 2011 10:13
Show Gist options
  • Save jensarps/1255839 to your computer and use it in GitHub Desktop.
Save jensarps/1255839 to your computer and use it in GitHub Desktop.
Using features
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