summaryrefslogtreecommitdiffstats
path: root/web/react/components/textbox.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-07-09 17:59:13 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-07-09 17:59:13 -0700
commit7f0d070bf107502a96c5271cc2bc939bd115362a (patch)
treecec354f26bc78130b536f6ac245e4bba0ac9f8d3 /web/react/components/textbox.jsx
parent56f369cfd1c8a480a1e70a10564670153dae2ff2 (diff)
downloadchat-7f0d070bf107502a96c5271cc2bc939bd115362a.tar.gz
chat-7f0d070bf107502a96c5271cc2bc939bd115362a.tar.bz2
chat-7f0d070bf107502a96c5271cc2bc939bd115362a.zip
Added performance comment
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r--web/react/components/textbox.jsx2
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,