Added comments for the force update functions

Этот коммит содержится в:
nickago
2015-07-09 14:55:29 -07:00
родитель 702112dfb3
Коммит fe6f9437ab
2 изменённых файлов: 2 добавлений и 0 удалений

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

@@ -196,6 +196,7 @@ module.exports = React.createClass({
}
this.setState(newState);
} else {
// Updates the timestamp on each post
this.forceUpdate()
}
},

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

@@ -24,6 +24,7 @@ module.exports = React.createClass({
UserStore.removeStatusesChangeListener(this._onChange);
},
_onChange: function() {
// Updates the timestamp on each post
this.forceUpdate();
},
_onSelectedChange: function(from_search) {