mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-24 19:59:53 -04: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.
|
# This function itself removes the unwanted annotations on a later tick.
|
||||||
onChangeAnnotation: (event, session) ->
|
onChangeAnnotation: (event, session) ->
|
||||||
unfilteredAnnotations = session.getAnnotations()
|
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>.'
|
annotation.text is 'Start tag seen without seeing a doctype first. Expected e.g. <!DOCTYPE html>.'
|
||||||
if filteredAnnotations.length < unfilteredAnnotations.length
|
if filteredAnnotations.length < unfilteredAnnotations.length
|
||||||
session.setAnnotations(filteredAnnotations)
|
session.setAnnotations(filteredAnnotations)
|
||||||
|
|
Loading…
Add table
Reference in a new issue