Added performance comment
Этот коммит содержится в:
@@ -113,6 +113,8 @@ module.exports = React.createClass({
|
|||||||
handleKeyPress: function(e) {
|
handleKeyPress: function(e) {
|
||||||
var text = this.refs.message.getDOMNode().value;
|
var text = this.refs.message.getDOMNode().value;
|
||||||
|
|
||||||
|
//Since these should only happen when you have no connection and slightly briefly after any
|
||||||
|
//performance hit should not matter
|
||||||
if (this.state.connection === " bad-connection" && this.state.numPresses > 5) {
|
if (this.state.connection === " bad-connection" && this.state.numPresses > 5) {
|
||||||
AppDispatcher.handleServerAction({
|
AppDispatcher.handleServerAction({
|
||||||
type: ActionTypes.RECIEVED_ERROR,
|
type: ActionTypes.RECIEVED_ERROR,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user