From a72add367b2a65ae2648d330c9a99e197c09467d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 12 Dec 2016 15:07:18 +0800 Subject: [PATCH] ux/FlipCounter.js --- ux/FlipCounter.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ux/FlipCounter.js b/ux/FlipCounter.js index 98614596ba..ef18bc466a 100644 --- a/ux/FlipCounter.js +++ b/ux/FlipCounter.js @@ -56,7 +56,8 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, { } }, - addDigit : function (num) { + addDigit : function (num) + { // Add separator after every 3rd digit if (this.digits.length % 3 == 0 && this.digits.length != 0) { @@ -65,8 +66,8 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, { - var li = this.el.select('li', true).first(); - var digit = new Roo.ux.FlipCounter.Digit(li, num); + + var digit = new Roo.ux.FlipCounter.Digit({ manager : this, currentnumber : num }); digit.manager = this; this.digits.push(digit); digit.render(this.el); -- 2.39.2