projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8e63533
)
ux/FlipCounter.js
author
Alan Knowles
<alan@roojs.com>
Mon, 12 Dec 2016 07:07:18 +0000
(15:07 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 12 Dec 2016 07:07:18 +0000
(15:07 +0800)
ux/FlipCounter.js
patch
|
blob
|
history
diff --git
a/ux/FlipCounter.js
b/ux/FlipCounter.js
index
9861459
..
ef18bc4
100644
(file)
--- 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)
{
// 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);
digit.manager = this;
this.digits.push(digit);
digit.render(this.el);