Files
rappaurio-sae501_502/app/node_modules/cejs/extension/loop1.js
2023-09-25 13:27:24 +02:00

38 lines
1.9 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
if (typeof CeL === 'function')
CeL.run({
// name/id.
name : 'extension.loop1',
// dependency.
require : 'extension.loop2.loop2_function',
// post action.
finish : function(name_space) {
// assert: this.id===name_space.Class
this.base.log('Module [' + name_space.Class + '] loaded.');
},
// source code.
code : function(library_namespace) {
// requiring
var loop2_function = this.r('loop2_function');
function loop1_function(caller) {
library_namespace
.debug(
'This is extension.loop1.loop1_function'
+ (caller ? ', called by ' + caller
: '') + '.', 1,
'loop1_function');
}
;
function loop1_function2(caller) {
library_namespace.debug('Calling loop2_function..', 1,
'loop1_function2');
loop2_function(caller || 'loop1_function2');
}
;
return [ loop1_function, loop1_function2 ];
}
});