mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-29 22:25:58 +02:00
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
'use strict';
|
||
typeof CeL === 'function' && CeL.run({
|
||
// name/id.
|
||
name : 'extension.parent1',
|
||
// dependency.
|
||
require : 'extension.loop1.loop1_function|extension.loop2.',
|
||
// source code.
|
||
code : function() {
|
||
var library_namespace = this.base,
|
||
// requiring
|
||
loop1_function = this.r('loop1_function');
|
||
|
||
var _ = function() {
|
||
// null module constructor
|
||
};
|
||
|
||
_.parent1_function = function(caller) {
|
||
loop1_function(caller || 'parent1_function');
|
||
library_namespace.loop2_function(caller || 'parent1_function');
|
||
};
|
||
|
||
// for inherit.
|
||
_.grant = function(subclass) {
|
||
};
|
||
|
||
return _;
|
||
}
|
||
});
|