f.e. i have:
require( ['module1'], function( module1_callback){
//callback_1 after code is loaded
} );
and module1.js
define( ['module2'], function(module2_callback)
{
//function_1 to perform something
return 'something';
});
i need module1 on demand but i need to run function_1 everytime i requre that module, in this case function_1 in module1 is executed only on first load but i need that routine every time i require module1. only return callback is executed