Просмотр исходного кода

avoid exception on pdfPage destroy

Brian Gough 12 лет назад
Родитель
Сommit
7ea20c4266
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/public/coffee/ide/pdfng/directives/pdfPage.coffee

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

@@ -108,7 +108,7 @@ define [
 					, 1000
 
 				scope.$on "$destroy", () ->
-					if scope.timeoutHandler
+					if scope.timeoutHandler?
 						$timeout.cancel(scope.timeoutHandler)
 						highlightsLayer.clearHighlights()