Javadoc example
/**
*This class does absolutely nothing reasonable
*@class MyObject
*/
var MyObject = MyObject || {
/**
*myFunction alerts a text
*@method myFunction
*@param {String} alertTxt Text thats shows in the alert
*@return {Boolean} true if the alert is shown
*/
myFunction:function(alertTxt){
alert(alertTxt);
myProperty++;
return true;
},
/**
*The number of time myFunction is called
*@property {Number} myProperty
*/
myProperty:0
}