Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3358fe3

Browse files
author
Chris Sevilleja
committed
Merge branch 'master' of github.com:scotch-io/react-tweets into github
2 parents 15ae685 + c5fb7de commit 3358fe3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/Tweets.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = Tweets = React.createClass({
1111
// Build list items of single tweet components using map
1212
var content = this.props.tweets.map(function(tweet){
1313
return (
14-
<Tweet key={tweet.twid} tweet={tweet} />
14+
<Tweet key={tweet._id} tweet={tweet} />
1515
)
1616
});
1717

@@ -22,4 +22,4 @@ module.exports = Tweets = React.createClass({
2222

2323
}
2424

25-
});
25+
});

components/TweetsApp.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = TweetsApp = React.createClass({
110110

111111
// Get scroll pos & window data
112112
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);
114114
var scrolled = (h + s) > document.body.offsetHeight;
115115

116116
// If scrolled enough, not currently paging and not complete...

0 commit comments

Comments
 (0)