mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 22:51:48 +00:00
nullify highlight timeout after clearing it
This commit is contained in:
parent
ad83784a81
commit
379e6d2f90
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue