web-apps/vendor/requirejs/tests/funcOne.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

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;
}
);