cls: 'flipcounter',
};
+ },
init : function ()
{
{
this.addDigit(startNum[i]);
}
- };
+ },
- FlipCounter.prototype.addDigit = function (num) {
+ addDigit : function (num) {
// Add separator after every 3rd digit
if (this.digits.length % 3 == 0 && this.digits.length != 0)
{