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