From: Alan Knowles Date: Mon, 12 Dec 2016 07:07:18 +0000 (+0800) Subject: ux/FlipCounter.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=a72add367b2a65ae2648d330c9a99e197c09467d ux/FlipCounter.js --- 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);