Changed spacing model of connection flag & removed unnecessary duplication of logic
Этот коммит содержится в:
@@ -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) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user