diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-07-09 17:59:13 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-07-09 17:59:13 -0700 |
commit | 7f0d070bf107502a96c5271cc2bc939bd115362a (patch) | |
tree | cec354f26bc78130b536f6ac245e4bba0ac9f8d3 /web/react | |
parent | 56f369cfd1c8a480a1e70a10564670153dae2ff2 (diff) | |
download | chat-7f0d070bf107502a96c5271cc2bc939bd115362a.tar.gz chat-7f0d070bf107502a96c5271cc2bc939bd115362a.tar.bz2 chat-7f0d070bf107502a96c5271cc2bc939bd115362a.zip |
Added performance comment
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/textbox.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
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, |