From 7f0d070bf107502a96c5271cc2bc939bd115362a Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Thu, 9 Jul 2015 17:59:13 -0700 Subject: Added performance comment --- web/react/components/textbox.jsx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web') diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx index db28fe3ab..16219156d 100644 --- a/web/react/components/textbox.jsx +++ b/web/react/components/textbox.jsx @@ -113,6 +113,8 @@ module.exports = React.createClass({ handleKeyPress: function(e) { 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) { AppDispatcher.handleServerAction({ type: ActionTypes.RECIEVED_ERROR, -- cgit v1.2.3-1-g7c22