2014-07-13 01:04:16 +02:00
|
|
|
//// [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({
|
2014-08-14 14:57:24 +02:00
|
|
|
/**
|
|
|
|
This is just another way to define a constructor.
|
|
|
|
@constructs
|
|
|
|
@param {string} name The name of the person.
|
|
|
|
*/
|
2014-07-13 01:04:16 +02:00
|
|
|
initialize: function (name) {
|
|
|
|
this.name = name;
|
2014-07-28 20:34:30 +02:00
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
});
|