raptor
Version:
RaptorJS provides an AMD module loader that works in Node, Rhino and the web browser. It also includes various sub-modules to support building optimized web applications.
46 lines (35 loc) • 726 B
JavaScript
/**
* Simple module with anonymous class
*/
define("simple", function(require) {
/**
* Anonymous inner class
*
*/
var Anon = function(a, b, c) {
};
Anon.prototype = {
/**
*
* @param a
* @param b
*/
myAnonFunction: function(a, b) {
}
};
while (true) {
/**
* Test dynamic prototype property
*/
Anon.prototype.testDyna = function() {
}
}
return {
hello: function() {
},
/**
* A reference to the anonymous inner class
*/
anonMember: Anon
};
});