/tags/jsdoc_toolkit-2.4.0/jsdoc-toolkit/app/test/constructs.js
JavaScript | 18 lines | 10 code | 0 blank | 8 comment | 0 complexity | 792204f582a77aebed99be4204edf342 MD5 | raw file
- 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;
- }
- }
- );