web-apps/vendor/requirejs/tests/funcTwo.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -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;
}
);