()
| 1209 | } |
| 1210 | |
| 1211 | function intakeDefines() { |
| 1212 | var args; |
| 1213 | |
| 1214 | //Any defined modules in the global queue, intake them now. |
| 1215 | takeGlobalQueue(); |
| 1216 | |
| 1217 | //Make sure any remaining defQueue items get properly processed. |
| 1218 | while (defQueue.length) { |
| 1219 | args = defQueue.shift(); |
| 1220 | if (args[0] === null) { |
| 1221 | return onError(makeError('mismatch', 'Mismatched anonymous define() module: ' + args[args.length - 1])); |
| 1222 | } else { |
| 1223 | //args are id, deps, factory. Should be normalized by the |
| 1224 | //define() function. |
| 1225 | callGetModule(args); |
| 1226 | } |
| 1227 | } |
| 1228 | } |
| 1229 | |
| 1230 | context = { |
| 1231 | config: config, |
no test coverage detected