DocumentServer/OfficeWeb/vendor/requirejs/tests/funcTwo.js
2015-04-28 17:59:00 +03:00

16 lines
335 B
JavaScript

define("funcTwo",
["require", "funcOne"],
function (require) {
var two = function (name) {
this.name = name;
this.one = new (require("funcOne"))("ONE");
};
two.prototype.oneName = function () {
return this.one.getName();
};
return two;
}
);