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