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)