mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
git-svn-id: https://jsdoc.googlecode.com/svn/trunk/@17 d5942f49-e6af-b5c1-9d01-85772c7ca168
16 lines
373 B
JavaScript
16 lines
373 B
JavaScript
/** @class */
|
|
var Person = makeClass(
|
|
/** @lends Person# */
|
|
{
|
|
/** Set up initial values. */
|
|
initialize: function(name) {
|
|
/** The name of the person. */
|
|
this.name = name;
|
|
},
|
|
|
|
/** Speak a message. */
|
|
say: function(message) {
|
|
return this.name + " says: " + message;
|
|
}
|
|
}
|
|
); |