Changed spacing model of connection flag & removed unnecessary duplication of logic

Этот коммит содержится в:
Reed Garmsen
2015-07-10 08:39:37 -07:00
родитель b4b0e92fd4
Коммит d2e046a98c

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

@@ -73,14 +73,11 @@ module.exports = React.createClass({
}); });
this.setState({ numPresses: 0 }); this.setState({ numPresses: 0 });
window.clearInterval(this.state.timerInterrupt);
this.setState({ timerInterrupt: null });
AsyncClient.updateLastViewedAt(); AsyncClient.updateLastViewedAt();
} }
else {
window.clearInterval(this.state.timerInterrupt); window.clearInterval(this.state.timerInterrupt);
this.setState({ timerInterrupt: null }); this.setState({ timerInterrupt: null });
}
}, },
componentDidUpdate: function() { componentDidUpdate: function() {
if (this.caret >= 0) { if (this.caret >= 0) {