Skip to content

Instantly share code, notes, and snippets.

@ulitink
Created March 25, 2014 08:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ulitink/9757354 to your computer and use it in GitHub Desktop.
Save ulitink/9757354 to your computer and use it in GitHub Desktop.
define([], function () {
/** @class DepClassName */
var exports = {
helloWorld: function() {
console.log("Hello world");
}
};
return exports;
});
define(['./dep'], function (/** DepClassName */dep) {
var exports = {
sayHello: function() {
dep.helloWorld(); // helloWorld() will be compeled here after 'dep.'
}
};
return exports;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment