mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 11:22:38 +00:00
avoid exception
This commit is contained in:
parent
0420e4638d
commit
440c1d3987
1 changed files with 1 additions and 1 deletions
|
@ -73,11 +73,11 @@ define [
|
|||
@redraw = (position) ->
|
||||
console.log 'in redraw'
|
||||
console.log 'reseting pages array for', $scope.numPages
|
||||
console.log 'position is', position.page, position.offset
|
||||
$scope.pages = ({
|
||||
pageNum: i + 1
|
||||
} for i in [0 .. $scope.numPages-1])
|
||||
if position? && position.page?
|
||||
console.log 'position is', position.page, position.offset
|
||||
console.log 'setting current page', position.page
|
||||
pagenum = position.page
|
||||
$scope.pages[pagenum].current = true
|
||||
|
|
Loading…
Reference in a new issue