25 lines
606 B
JavaScript
25 lines
606 B
JavaScript
//// [commentsOnObjectLiteral2.ts]
|
|
var Person = makeClass(
|
|
{
|
|
/**
|
|
This is just another way to define a constructor.
|
|
@constructs
|
|
@param {string} name The name of the person.
|
|
*/
|
|
initialize: function(name) {
|
|
this.name = name;
|
|
},
|
|
}
|
|
);
|
|
|
|
//// [commentsOnObjectLiteral2.js]
|
|
var Person = makeClass({
|
|
/**
|
|
This is just another way to define a constructor.
|
|
@constructs
|
|
@param {string} name The name of the person.
|
|
*/
|
|
initialize: function (name) {
|
|
this.name = name;
|
|
}
|
|
});
|