amdjs / amdjs-api

Houses the Asynchronous Module Definition API
https://groups.google.com/group/amd-implement
4.31k stars 499 forks source link

"Transporting more than one module at a time" section lacks details #14

Closed knutkj closed 10 years ago

knutkj commented 10 years ago

I think the section "Transporting more than one module at a time" is missing some details. Can you have multiple define calls made within a single script if you don't specify the id argument?

jrburke commented 10 years ago

It would not work, as it would not be possible for the loader to assign the function passed to define() to a module ID slot. In that scenario there is not enough information to know what is being defined.