| branch | jsdoc |
| changeset 519 | 46e21d060650 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbin/res/app/test/constructs.js Fri Dec 23 10:59:23 2011 +0100 @@ -0,0 +1,18 @@ +var Person = makeClass( + /** + @scope Person + */ + { + /** + This is just another way to define a constructor. + @constructs + @param {string} name The name of the person. + */ + initialize: function(name) { + this.name = name; + }, + say: function(message) { + return this.name + " says: " + message; + } + } +); \ No newline at end of file