mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
null check highlights before removing them
This commit is contained in:
parent
2c3b19e43d
commit
e8b50e2ffd
1 changed files with 1 additions and 1 deletions
|
@ -24,6 +24,6 @@ define [
|
|||
|
||||
clearHighlights: () ->
|
||||
for h in @highlightElements
|
||||
h.remove()
|
||||
h?.remove()
|
||||
@highlightElements = []
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue