Removing useless resize alert function in PostBody

This commit is contained in:
Christopher Speller
2015-11-02 10:32:00 -05:00
parent 1e7ac66e3b
commit d4ec6d3bf4
3 changed files with 2 additions and 10 deletions

View File

@@ -204,7 +204,6 @@ export default class Post extends React.Component {
posts={posts}
handleCommentClick={this.handleCommentClick}
retryPost={this.retryPost}
resize={this.props.resize}
/>
<PostInfo
ref='info'
@@ -228,6 +227,5 @@ Post.propTypes = {
sameUser: React.PropTypes.bool,
sameRoot: React.PropTypes.bool,
hideProfilePic: React.PropTypes.bool,
isLastComment: React.PropTypes.bool,
resize: React.PropTypes.func
isLastComment: React.PropTypes.bool
};

View File

@@ -50,7 +50,6 @@ export default class PostBody extends React.Component {
componentDidUpdate() {
this.parseEmojis();
this.props.resize();
}
componentWillReceiveProps(nextProps) {
@@ -338,6 +337,5 @@ PostBody.propTypes = {
post: React.PropTypes.object.isRequired,
parentPost: React.PropTypes.object,
retryPost: React.PropTypes.func.isRequired,
handleCommentClick: React.PropTypes.func.isRequired,
resize: React.PropTypes.func.isRequired
handleCommentClick: React.PropTypes.func.isRequired
};

View File

@@ -12,7 +12,6 @@ export default class PostsView extends React.Component {
this.handleScroll = this.handleScroll.bind(this);
this.isAtBottom = this.isAtBottom.bind(this);
this.loadMorePostsTop = this.loadMorePostsTop.bind(this);
this.postsRerendered = this.postsRerendered.bind(this);
this.createPosts = this.createPosts.bind(this);
this.updateScrolling = this.updateScrolling.bind(this);
this.handleResize = this.handleResize.bind(this);
@@ -53,8 +52,6 @@ export default class PostsView extends React.Component {
loadMorePostsTop() {
this.props.loadMorePostsTopClicked();
}
postsRerendered() {
}
createPosts(posts, order) {
const postCtls = [];
let previousPostDay = new Date(0);
@@ -111,7 +108,6 @@ export default class PostsView extends React.Component {
posts={posts}
hideProfilePic={hideProfilePic}
isLastComment={isLastComment}
resize={this.postsRerendered}
/>
);