mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-29 22:25:58 +02:00
21 lines
1016 B
JavaScript
21 lines
1016 B
JavaScript
'use strict';
|
||
typeof CeL === 'function' && CeL.run({
|
||
// name/id.
|
||
name : 'extension.loop2',
|
||
// dependency.
|
||
require : 'extension.loop1.loop1_function',
|
||
// source code.
|
||
code : function() {
|
||
var library_namespace = this.base,
|
||
// requiring
|
||
loop1_function = this.r('loop1_function');
|
||
|
||
function loop2_function(caller) {
|
||
library_namespace.debug('Call loop1_function..', 1, 'loop2_function');
|
||
loop1_function(caller || 'loop2_function');
|
||
};
|
||
|
||
return [loop2_function];
|
||
}
|
||
});
|