Errores solucionados

This commit is contained in:
Juan Ferrer Toribio 2016-05-06 14:09:15 +02:00
parent 8e42a5e262
commit 19731fd618
3 changed files with 7 additions and 17 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.340-deb8) stable; urgency=low hedera-web (1.342-deb8) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -26,10 +26,7 @@ Db.CalcSum = new Class
var value = this.getRowValue (row) var value = this.getRowValue (row)
if (value !== null) if (value !== null)
{ this._sum -= value;
this.sum -= value;
this.numbersCount--;
}
} }
,after: function (row) ,after: function (row)
@ -37,23 +34,16 @@ Db.CalcSum = new Class
var value = this.getRowValue (row); var value = this.getRowValue (row);
if (value !== null) if (value !== null)
{ this._sum += value;
this.sum += value;
this.numbersCount++;
}
} }
,init: function () ,init: function ()
{ {
this.sum = 0; this._sum = 0;
this.numbersCount = 0;
} }
,done: function () ,done: function ()
{ {
if (this.numbersCount > 0) this.value = this._sum;
this.value = this.sum;
else
this.value = null;
} }
}); });

View File

@ -50,9 +50,9 @@ Htk.Widget = new Class
return this.node; return this.node;
} }
,_createNode () {} ,_createNode: function () {}
,_refreshClass () ,_refreshClass: function ()
{ {
if (this.node && this._cssClass) if (this.node && this._cssClass)
this.node.className = this._cssClass +' '+ this.node.className; this.node.className = this._cssClass +' '+ this.node.className;