- var dependenciesList = [
- 'jquery-1.9.1.min',
- 'editor/runner',
- 'editor/rng',
-
- 'modules/data',
- 'modules/rng',
- 'modules/skelton',
- 'modules/sourceEditor',
- 'modules/tabsManager',
- 'modules/visualEditor',
- 'modules/sourceEditor',
-
- 'bootstrap/js/bootstrap.min'
- ];
- \r
- requirejs(dependenciesList, function ($, runner, rng) {\r
- var args = arguments;
-
- var getModulesFromArguments = function() {
- var toret = {};
- var isModule = function(idx) {return dependenciesList[idx].substr(0, 'modules/'.length) === 'modules/';};
- var moduleName = function(idx) {return dependenciesList[idx].split('/')[1]};
-
- for(var i = 0; i < args.length; i++) {
- if(isModule(i))
- toret[moduleName(i)] = args[i];
- }
- return toret;
- }
-
+ requirejs([
+ 'libs/jquery-1.9.1.min',
+ 'fnpjs/runner',
+ 'rng',
+ './modules',
+ 'libs/bootstrap/js/bootstrap.min'
+ ], function($, runner, rng, modules) {