mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Fix worker-based syntax annotations
This commit is contained in:
parent
2dadc8458c
commit
c2ce804839
1 changed files with 1 additions and 1 deletions
|
@ -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. <!DOCTYPE html>.'
|
||||
if filteredAnnotations.length < unfilteredAnnotations.length
|
||||
session.setAnnotations(filteredAnnotations)
|
||||
|
|
Loading…
Reference in a new issue