File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports = Tweets = React.createClass({
11
11
// Build list items of single tweet components using map
12
12
var content = this . props . tweets . map ( function ( tweet ) {
13
13
return (
14
- < Tweet key = { tweet . twid } tweet = { tweet } />
14
+ < Tweet key = { tweet . _id } tweet = { tweet } />
15
15
)
16
16
} ) ;
17
17
@@ -22,4 +22,4 @@ module.exports = Tweets = React.createClass({
22
22
23
23
}
24
24
25
- } ) ;
25
+ } ) ;
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ module.exports = TweetsApp = React.createClass({
110
110
111
111
// Get scroll pos & window data
112
112
var h = Math . max ( document . documentElement . clientHeight , window . innerHeight || 0 ) ;
113
- var s = ( document . body . scrollTop , document . documentElement . scrollTop || 0 ) ;
113
+ var s = ( document . body . scrollTop || document . documentElement . scrollTop || 0 ) ;
114
114
var scrolled = ( h + s ) > document . body . offsetHeight ;
115
115
116
116
// If scrolled enough, not currently paging and not complete...
You can’t perform that action at this time.
0 commit comments