mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
null check highlights before removing them
This commit is contained in:
@@ -24,6 +24,6 @@ define [
|
||||
|
||||
clearHighlights: () ->
|
||||
for h in @highlightElements
|
||||
h.remove()
|
||||
h?.remove()
|
||||
@highlightElements = []
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user