funcOne.js 332 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 define("funcOne", ["require", "funcTwo"], function(require){ var one = function(name){ this.name = name; }; one.prototype.getName = function(){ var inst = new (require("funcTwo"))("-NESTED"); return this.name + inst.name; }; return one; } );