Initial commit

This commit is contained in:
2015-07-06 00:39:38 +02:00
commit 3cd2541f7f
18 changed files with 1111 additions and 0 deletions

9
test/loading/module.js Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
module.exports = function (modular) {
return {
run: function () {
return modular('module2').run();
}
};
};

9
test/loading/module2.js Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
module.exports = function() {
return {
run : function () {
return 1;
}
};
};

9
test/loading/module3.js Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
module.exports = function (modular) {
return {
run: function () {
return modular('nested.module4').run();
}
};
};

11
test/loading/module5.js Normal file
View File

@@ -0,0 +1,11 @@
'use strict';
var mod;
module.exports.onLoad = function (modular) {
mod = modular('module6');
};
module.exports.run = function () {
return mod.run();
};

9
test/loading/module6.js Normal file
View File

@@ -0,0 +1,9 @@
'use strict';
module.exports = function() {
return {
run : function () {
return 1;
}
};
};

View File

@@ -0,0 +1,9 @@
'use strict';
module.exports = function() {
return {
run : function () {
return 1;
}
};
};