ux/FlipCounter.js
[roojs1] / ux / FlipCounter.js
index 2eebb7a..5626b56 100644 (file)
@@ -53,7 +53,10 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
         
     initEvents : function ()
     { 
+        
+        
         var startNum = (1.0*this.startnumber).toFixed(this.decimal);
+        Roo.log("STARTNUmber:  " + startNum);
         
         for (i=startNum.length-1; i>=0; i=i-1)
         {
@@ -68,6 +71,8 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
     
     addDigit : function (num)
     {
+        
+        Roo.log("Add digit "+ num);
         // Add separator after every 3rd digit
         /*if (this.digits.length % 3 == 0 && this.digits.length != 0)
         {
@@ -194,6 +199,7 @@ Roo.extend(Roo.ux.FlipCounter.Digit, Roo.bootstrap.Component, {
     
     getAutoCreate : function(){
         
+        Roo.log("render with cn=" + this.currentNumber);
         return {
                 tag: 'li',
                 cn : [