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