16 lines
338 B
JavaScript
16 lines
338 B
JavaScript
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;
|
|
}
|
|
);
|