source: Dev/branches/rest-dojo-ui/client/util/build/plugins/require.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 430 bytes
Line 
1///
2// \module build/plugins/require
3//
4define([], function() {
5        return {
6                start:function(
7                        mid,
8                        referenceModule,
9                        bc
10                ) {
11                        var result = [];
12                        mid.split(",").map(function(mid){
13                                var module = bc.amdResources[mid];
14                                if (!module) {
15                                        bc.log("legacyMissingDependency", ["reference module", referenceModule.mid, "dependency", mid]);
16                                }else{
17                                        result.push(module);
18                                }
19                        });
20                        return result;
21                }
22        };
23});
24
Note: See TracBrowser for help on using the repository browser.