From 7d9a615a48d18b91dab678238bf11b0846ba66cb Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 11 Jan 2018 15:12:52 -0800 Subject: [PATCH] Remove comment --- app/src/components/composer-editor/spellcheck-plugins.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/components/composer-editor/spellcheck-plugins.jsx b/app/src/components/composer-editor/spellcheck-plugins.jsx index 6d7a58fb4..5d3e1ab7a 100644 --- a/app/src/components/composer-editor/spellcheck-plugins.jsx +++ b/app/src/components/composer-editor/spellcheck-plugins.jsx @@ -174,8 +174,8 @@ function onSpellcheckFullDocument(editor) { } } - // compare old decorations to new decorations. If we call call onChange - // it pushes on the undo stack, which we don't want to do unnecessarily. + // compare old decorations to new decorations. We're debounced, so calling + // onChange() introduces a re-render we wouldn't be doing otherwise. let changed = false; const previous = value.get('decorations'); @@ -201,8 +201,6 @@ function onSpellcheckFullDocument(editor) { .setValue({ decorations }) .setOperationFlag('save', true); editor.onChange(change); - } else { - console.log('skipping pointless decorator update'); } }