UNPKG

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.

23 lines (20 loc) 368 B
/** * Simple module with anonymous class */ define("Simple", function(require) { var Simple = function() { /** * Test property a */ this.a = true; }; Simple.prototype = { test: function() { this.b = "Hello"; } }; Simple.prototype.test = function() { this.c = "Hello"; }; return Simple; });