web-apps/vendor/requirejs/tests/circular/414/MyClass.js

31 lines
535 B
JavaScript
Raw Normal View History

2016-03-11 00:48:53 +00:00
define(
[
"exports",
"./A",
"./B",
"./C"
],
function (exports, A, B, C) {
exports.name = "MyClass";
exports.sayAll = function(){
return [
exports.say(),
A.say(),
B.say(),
C.say()
].join(':');
};
exports.say = function(){
return [exports.name, A.name, B.name, C.name].join(',');
};
return exports;
}
);