From 034b52767a85365b47d3bdb67cedb1ab945f5970 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 6 Dec 2016 11:45:54 +0800 Subject: [PATCH] ux/FlipCounter.js --- ux/FlipCounter.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ux/FlipCounter.js b/ux/FlipCounter.js index e902e118a1..df02215893 100644 --- a/ux/FlipCounter.js +++ b/ux/FlipCounter.js @@ -31,8 +31,16 @@ Roo.ux.FlipCounter = function(options) Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, { speed : 0.2, + startnumber : 0, - + getAutoCreate : function(){ + + return { + tag: 'ul', + cls: 'flipcounter', + + }; + init : function () { var elem = this.el; @@ -40,7 +48,7 @@ Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, { if (startNum === "") { startNum = "0"; } - elem.html(''); + this.ul = elem.children('ul'); this.ulWidth = 0; -- 2.39.2