null check highlights before removing them

This commit is contained in:
Henry Oswald 2015-02-18 22:29:07 +00:00
parent 2c3b19e43d
commit e8b50e2ffd

View file

@ -24,6 +24,6 @@ define [
clearHighlights: () ->
for h in @highlightElements
h.remove()
h?.remove()
@highlightElements = []
]