add some JSDoc so Eclipse shows an outline: @memberOf and @augments (not yet understood by Eclipse), also fixed many warnings (mostly missing semicolons)

This commit is contained in:
Ralf Becker
2013-04-13 19:00:13 +00:00
parent 0802a28242
commit e64c4fbd04
68 changed files with 1105 additions and 445 deletions

View File

@@ -1,5 +1,5 @@
/**
* eGroupWare eTemplate2 - JS Number object
* EGroupware eTemplate2 - JS Number object
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package etemplate
@@ -18,9 +18,11 @@
/**
* Class which implements the "int" and textbox type=float XET-Tags
*
* @augments et2_textbox
*/
var et2_number = et2_textbox.extend({
var et2_number = et2_textbox.extend(
{
attributes: {
"value": {
"type": "float"
@@ -51,6 +53,11 @@ var et2_number = et2_textbox.extend({
}
},
/**
* Constructor
*
* @memberOf et2_number
*/
init: function() {
this._super.apply(this, arguments);
},
@@ -80,14 +87,16 @@ var et2_number = et2_textbox.extend({
}
}
});
et2_register_widget(et2_number, ["int", "integer", "float"]);
/**
* Extend read-only to tell it to ignore special attributes, which
* would cause warnings otherwise
* @augments et2_textbox_ro
* @class
*/
var et2_number_ro = et2_textbox_ro.extend({
var et2_number_ro = et2_textbox_ro.extend(
{
attributes: {
"min": {"ignore": true},
"max": {"ignore": true},