Created
March 25, 2014 08:32
-
-
Save ulitink/9757354 to your computer and use it in GitHub Desktop.
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([], function () { | |
/** @class DepClassName */ | |
var exports = { | |
helloWorld: function() { | |
console.log("Hello world"); | |
} | |
}; | |
return exports; | |
}); |
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(['./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