nullify highlight timeout after clearing it

This commit is contained in:
Brian Gough 2016-07-05 16:09:33 +01:00
parent ad83784a81
commit 379e6d2f90

View file

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