Skip to content

Instantly share code, notes, and snippets.

@padolsey
Created December 11, 2011 23:15
Show Gist options
  • Save padolsey/1463408 to your computer and use it in GitHub Desktop.
Save padolsey/1463408 to your computer and use it in GitHub Desktop.
`given(d).define(m)` - an alternative to `define(d,m)`
function given(dependencies) {
return {
define: function(module) {
return define(dependencies, module);
}
};
}
// usage:
given(['foo', 'bar']).define(function(foo, bar){
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment