I don’t think you can embed a scope in a stand-alone executable script call with $ .getScript. Instead, you should use some export variable to hold the script until the scope is entered.
(function( exports ) {
exports.Module = function() {
return {
init: function(scope){
console.log('Initialized', scope);
}
};
};
var module = exports.Module;
})( exports || window.exports = {} );
Then:
var self = this;
$.getScript("/js/libs/module.js", function(){
exports.Module().init(self);
});
, jQuery , , , require.js Frame.js.