DocumentServer/OfficeWeb/vendor/requirejs/tests/funcOne.js
2015-04-28 17:59:00 +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;
}
);