File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ var Counter = React.createClass({
16
16
if ( this . stop ) return ;
17
17
18
18
raf ( this . animate ) ;
19
- this . draw ( )
19
+ this . draw ( ) ;
20
20
} ,
21
21
22
22
draw : function ( ) {
@@ -28,7 +28,7 @@ var Counter = React.createClass({
28
28
var easing = this . props . easing ;
29
29
30
30
easing = easing && easing in ease ? easing : 'outCube' ;
31
- var now = Date . now ( )
31
+ var now = Date . now ( ) ;
32
32
if ( now - this . start >= time ) this . stop = true ;
33
33
var percentage = ( now - this . start ) / time ;
34
34
percentage = percentage > 1 ? 1 : percentage ;
@@ -39,7 +39,11 @@ var Counter = React.createClass({
39
39
} ,
40
40
41
41
render : function ( ) {
42
- return React . DOM . span ( { className : 'counter' } , Math . round ( this . state . value ) ) ;
42
+ return (
43
+ < span className = 'counter' >
44
+ { Math . round ( this . state . value ) }
45
+ </ span >
46
+ ) ;
43
47
}
44
48
} ) ;
45
49
Original file line number Diff line number Diff line change 24
24
"raf" : " ^2.0.4"
25
25
},
26
26
"peerDependencies" : {
27
- "react" : " >= 0.12 "
27
+ "react" : " ^0.14.0 "
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments