summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-02 10:32:00 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-02 10:33:08 -0500
commitd4ec6d3bf42d257851304fe9588f2db8bbbefa13 (patch)
treef22f766556fb2e0eae65d564b00435a2ffc418af /web
parent1e7ac66e3bcc796c705ed6a833161cab6bd5b65d (diff)
downloadchat-d4ec6d3bf42d257851304fe9588f2db8bbbefa13.tar.gz
chat-d4ec6d3bf42d257851304fe9588f2db8bbbefa13.tar.bz2
chat-d4ec6d3bf42d257851304fe9588f2db8bbbefa13.zip
Removing useless resize alert function in PostBody
Diffstat (limited to 'web')
-rw-r--r--web/react/components/post.jsx4
-rw-r--r--web/react/components/post_body.jsx4
-rw-r--r--web/react/components/posts_view.jsx4
3 files changed, 2 insertions, 10 deletions
diff --git a/web/react/components/post.jsx b/web/react/components/post.jsx
index dedac8951..c3c5b3e0b 100644
--- a/web/react/components/post.jsx
+++ b/web/react/components/post.jsx
@@ -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
};
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx
index 7138e2cb4..e1f495d54 100644
--- a/web/react/components/post_body.jsx
+++ b/web/react/components/post_body.jsx
@@ -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
};
diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx
index 5cefb4885..f5a492b85 100644
--- a/web/react/components/posts_view.jsx
+++ b/web/react/components/posts_view.jsx
@@ -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}
/>
);