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

16 lines
338 B
JavaScript
Raw Normal View History

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