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

nullify highlight timeout after clearing it

Brian Gough 10 лет назад
Родитель
Сommit
379e6d2f90
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

@@ -82,7 +82,7 @@ define [
 					if scope.timeoutHandler
 					if scope.timeoutHandler
 						$timeout.cancel(scope.timeoutHandler)
 						$timeout.cancel(scope.timeoutHandler)
 						highlightsLayer.clearHighlights()
 						highlightsLayer.clearHighlights()
-						scope.timeoutHandler
+						scope.timeoutHandler = null
 
 
 					# console.log 'got highlight watch in pdfPage', scope.page
 					# console.log 'got highlight watch in pdfPage', scope.page
 					pageHighlights = (h for h in highlights when h.page == scope.page.pageNum)
 					pageHighlights = (h for h in highlights when h.page == scope.page.pageNum)