projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
49745e9
)
ux/FlipCounter.js
author
Alan Knowles
<alan@roojs.com>
Tue, 13 Dec 2016 08:19:27 +0000
(16:19 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 13 Dec 2016 08:19:27 +0000
(16:19 +0800)
ux/FlipCounter.js
patch
|
blob
|
history
diff --git
a/ux/FlipCounter.js
b/ux/FlipCounter.js
index
feb0e33
..
a5da789
100644
(file)
--- a/
ux/FlipCounter.js
+++ b/
ux/FlipCounter.js
@@
-35,6
+35,7
@@
Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
speed : 0.2,
startnumber : 0,
speed : 0.2,
startnumber : 0,
+ currentNumber : 0,
digits : false, // array...
ulWidth : 0,
digits : false, // array...
ulWidth : 0,
@@
-57,6
+58,7
@@
Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
{
this.addDigit(startNum[i]);
}
{
this.addDigit(startNum[i]);
}
+ this.currentNumber = this.startnumber;
},
addDigit : function (num)
},
addDigit : function (num)
@@
-67,8
+69,7
@@
Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
this.addSeparator();
}
this.addSeparator();
}
-
-
+
var digit = new Roo.ux.FlipCounter.Digit({ manager : this, currentNumber : num });
digit.manager = this;
var digit = new Roo.ux.FlipCounter.Digit({ manager : this, currentNumber : num });
digit.manager = this;
@@
-117,6
+118,7
@@
Roo.extend(Roo.ux.FlipCounter, Roo.bootstrap.Component, {
{
var numStr = parseInt(num).toString();
{
var numStr = parseInt(num).toString();
+ this.currentNumber = num;
// Change the number of digits displayed if needed
if (numStr.length != this.digits.length)
{
// Change the number of digits displayed if needed
if (numStr.length != this.digits.length)
{