From e8b50e2ffd101d4a1fa299f01e6f0d7913714505 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 18 Feb 2015 22:29:07 +0000 Subject: [PATCH] null check highlights before removing them --- .../web/public/coffee/ide/pdfng/directives/pdfHighlights.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfHighlights.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfHighlights.coffee index fc2b72bd79..45ec988c38 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfHighlights.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfHighlights.coffee @@ -24,6 +24,6 @@ define [ clearHighlights: () -> for h in @highlightElements - h.remove() + h?.remove() @highlightElements = [] ]