From 084fcb53e49939777b18e3e345a4e285e8447f1a Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 22 Oct 2015 16:08:03 -0700 Subject: [PATCH] fix(spellcheck): Fix dead code, resolve Sentry 3594 --- .../composer-spellcheck/lib/draft-extension.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal_packages/composer-spellcheck/lib/draft-extension.coffee b/internal_packages/composer-spellcheck/lib/draft-extension.coffee index 321af0a02..d74378973 100644 --- a/internal_packages/composer-spellcheck/lib/draft-extension.coffee +++ b/internal_packages/composer-spellcheck/lib/draft-extension.coffee @@ -15,7 +15,6 @@ class SpellcheckDraftStoreExtension extends DraftStoreExtension @onLearnSpelling: (editableNode, word) -> delete SpellcheckCache[word] - @ensureSetup() @walkTree(editableNode) @walkTree: (editableNode) => @@ -55,7 +54,7 @@ class SpellcheckDraftStoreExtension extends DraftStoreExtension # Do not mark it until the user types a space or leaves. if selectionSnapshot.focusNode is node and selectionSnapshot.focusOffset is match.index + match[0].length continue - + if spellingSpan spellingSpan.classList.add('misspelled') else