Fix error thrown when navigating to nonexistent page.
This commit is contained in:
parent
31b4097999
commit
0093ebf18f
@ -553,9 +553,9 @@ Index =
|
|||||||
else
|
else
|
||||||
strong = $.el 'strong'
|
strong = $.el 'strong'
|
||||||
|
|
||||||
a = pagesRoot.children[pageNum - 1]
|
if (a = pagesRoot.children[pageNum - 1])
|
||||||
$.before a, strong
|
$.before a, strong
|
||||||
$.add strong, a
|
$.add strong, a
|
||||||
|
|
||||||
updateHideLabel: ->
|
updateHideLabel: ->
|
||||||
return unless Index.hideLabel
|
return unless Index.hideLabel
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user