Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //one.js
- var Module = (function(Module) {
- this.variable = 3;
- this.init = function() {
- console.log("init");
- };
- return this;
- }).call({});
- $(function() {
- Module.init();
- Module.Utils.init();
- });
- //two.js
- var Module = Module ? Module : {};
- this.Utils = (function(Utils) {
- this.init = function() {
- console.log("Module.Utils.init");
- };
- return this;
- }).call({});
Add Comment
Please, Sign In to add comment