ux/FlipCounter.js
authorAlan Knowles <alan@roojs.com>
Tue, 6 Dec 2016 03:46:47 +0000 (11:46 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 6 Dec 2016 03:46:47 +0000 (11:46 +0800)
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)
         {