Skip to content

Instantly share code, notes, and snippets.

@keesun
Created January 25, 2012 14:39
Show Gist options
  • Select an option

  • Save keesun/1676562 to your computer and use it in GitHub Desktop.

Select an option

Save keesun/1676562 to your computer and use it in GitHub Desktop.
AMD Sample
define('calculator', ['adder'], function(adder) {
return {
add: function(n1, n2) {
return adder.add(n1, n2);
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment