ux/FlipCounter.js
[roojs1] / ux / FlipCounter.js
index 9f8d972..8c57925 100644 (file)
@@ -40,6 +40,7 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
             cls: 'flipcounter',
             
         };
+    },
         
     init : function ()
     { 
@@ -51,9 +52,9 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
         {
             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)
         {