avoid exception on pdfPage destroy

This commit is contained in:
Brian Gough
2014-12-05 12:12:17 +00:00
parent c167e86ba5
commit 7ea20c4266
@@ -108,7 +108,7 @@ define [
, 1000
scope.$on "$destroy", () ->
if scope.timeoutHandler
if scope.timeoutHandler?
$timeout.cancel(scope.timeoutHandler)
highlightsLayer.clearHighlights()