Time change ping riding on the status interupt for timestamp update

Этот коммит содержится в:
nickago
2015-07-09 10:44:23 -07:00
родитель b6fb6ea3be
Коммит 38532013fa

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

@@ -5,6 +5,15 @@ var UserStore = require('../stores/user_store.jsx');
var utils = require('../utils/utils.jsx');
module.exports = React.createClass({
componentDidMount: function() {
UserStore.addStatusesChangeListener(this._onChange);
},
componentWillUnmount: function() {
UserStore.removeStatusesChangeListener(this._onChange);
},
_onChange: function() {
this.forceUpdate();
},
getInitialState: function() {
return { };
},