فهرست منبع

null check highlights before removing them

Henry Oswald 11 سال پیش
والد
کامیت
e8b50e2ffd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      services/web/public/coffee/ide/pdfng/directives/pdfHighlights.coffee

+ 1 - 1
services/web/public/coffee/ide/pdfng/directives/pdfHighlights.coffee

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