mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +03:00
18 lines
385 B
JavaScript
18 lines
385 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;
|
||
|
}
|
||
|
}
|
||
|
);
|