Documents javascript constructor classes typically created like:
new MyContructor(args).
A constructor can be described by putting @constructor as the first declaritive.
To describe the construction function, write that after init. Example:
/* @constructor
* Person represents a human with a name
* @init
* You must pass in a name.
* @params {String} name A person's name
*|
Person = function(name){
this.name = name
Person.count ++;
}
/* @Static *|
MVC.Object.extend(Person, {
/* Number of People *|
count: 0
})
/* @Prototype *|
Person.prototype = {
/* Returns a formal name
* @return {String} the name with "Mrs." added
*|
fancy_name : function(){
return "Mrs. "+this.name;
}
}