Этот коммит содержится в:
nickago
2015-07-14 07:54:09 -07:00
родитель 8595b915af
Коммит 634df1c624
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -269,7 +269,7 @@ module.exports = React.createClass({
_onTimeChange: function() { _onTimeChange: function() {
this.wasForced = true; this.wasForced = true;
this.preForcePosision = $(".post-list-holder-by-time").scrollTop(); this.preForcePosision = $(".post-list-holder-by-time").scrollTop();
this.forceUpdate() this.forceUpdate();
}, },
getMorePosts: function(e) { getMorePosts: function(e) {
e.preventDefault(); e.preventDefault();

Просмотреть файл

@@ -299,7 +299,7 @@ module.exports = React.createClass({
componentWillUnmount: function() { componentWillUnmount: function() {
PostStore.removeSelectedPostChangeListener(this._onChange); PostStore.removeSelectedPostChangeListener(this._onChange);
PostStore.removeChangeListener(this._onChangeAll); PostStore.removeChangeListener(this._onChangeAll);
UserStore.removeStatusesChangeListener(this._onTimeChange) UserStore.removeStatusesChangeListener(this._onTimeChange);
}, },
_onChange: function() { _onChange: function() {
if (this.isMounted()) { if (this.isMounted()) {