web-apps/vendor/requirejs/tests/funcTwo.js

16 lines
335 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
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;
}
);