Roo.ux.FlipCounter = function(options)
{
- Roo.apply(this, options);
+ Roo.ux.FlipCounter.superclass.constructor.call(this, options);
+
+ //Roo.apply(this, options);
//this.el = $(element);
//this.options = $.extend({}, defaults, options);
this.addEvents({
Roo.ux.FlipCounter.Digit = function(options)
{
- Roo.apply(this, options);
+ //Roo.apply(this, options);
+ Roo.ux.FlipCounter.Digit.superclass.constructor.call(this, options);
+
this.currentNumber = parseInt(this.currentNumber);
+
}
Roo.extend(Roo.ux.FlipCounter.Digit, Roo.bootstrap.Component, {
{
cls : 'flipper_top flipper_top2 flipper_top_back',
cn : [
- { tag: 'span', html: num },
+ { tag: 'span', html: this.currentNumber },
{ cls : 'rings' }
]
{
cls : 'flipper_top flipper_top_front',
cn : [
- { tag: 'span', html: num },
+ { tag: 'span', html: this.currentNumber },
{ cls : 'rings' }
]
{
cls : 'flipper_bottom flipper_bottom1 flipper_bottom_back',
cn : [
- { tag: 'span', html: num },
+ { tag: 'span', html: this.currentNumber },
{ cls : 'rings' }
]
},
{
cls : 'flipper_bottom flipper_bottom_front',
cn : [
- { tag: 'span', html: num },
+ { tag: 'span', html: this.currentNumber },
{ cls : 'rings' }
]
},