mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
17 lines
406 B
JavaScript
17 lines
406 B
JavaScript
define([], function () {
|
|
var Person = makeClass(
|
|
/** @lends Person.prototype */
|
|
{
|
|
/** @constructs */
|
|
initialize: function(name) {
|
|
this.name = name;
|
|
},
|
|
/** Speak a message. */
|
|
say: function(message) {
|
|
return this.name + " says: " + message;
|
|
}
|
|
}
|
|
);
|
|
return Person;
|
|
});
|