From c2ce8048398af0c188afce50700853b008cbe90a Mon Sep 17 00:00:00 2001 From: Phoenix Eliot Date: Fri, 12 Aug 2016 16:28:29 -0700 Subject: [PATCH] Fix worker-based syntax annotations --- app/views/play/level/tome/SpellView.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/play/level/tome/SpellView.coffee b/app/views/play/level/tome/SpellView.coffee index 537158ddf..b4cc1d44b 100644 --- a/app/views/play/level/tome/SpellView.coffee +++ b/app/views/play/level/tome/SpellView.coffee @@ -803,7 +803,7 @@ module.exports = class SpellView extends CocoView # This function itself removes the unwanted annotations on a later tick. onChangeAnnotation: (event, session) -> unfilteredAnnotations = session.getAnnotations() - filteredAnnotations = _.remove unfilteredAnnotations, (annotation) -> + filteredAnnotations = _.reject unfilteredAnnotations, (annotation) -> annotation.text is 'Start tag seen without seeing a doctype first. Expected e.g. .' if filteredAnnotations.length < unfilteredAnnotations.length session.setAnnotations(filteredAnnotations)