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
require( | |
["modA", "modB"], | |
function (modA, modB) { | |
// do something with modA and modB | |
// when they are fully loaded | |
} | |
); |
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( | |
[ | |
'depA', | |
'depB', | |
'depC' | |
], | |
function (depA, depB, depC) { | |
var myModule = {}; | |
// build your module here | |
myModule.foo = depA.getFoo(); |
NewerOlder