From: Alan Knowles Date: Tue, 6 Dec 2016 03:45:54 +0000 (+0800) Subject: ux/FlipCounter.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=034b52767a85365b47d3bdb67cedb1ab945f5970 ux/FlipCounter.js --- 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;