make `headerIds` `const` [fix]

Signed-off-by: hoijui <hoijui.quaero@gmail.com>
This commit is contained in:
hoijui 2019-10-29 11:57:51 +01:00
parent 7c5ac3603a
commit aaf9466498
1 changed files with 1 additions and 1 deletions

View File

@ -943,7 +943,7 @@ export function deduplicatedHeaderId (view) {
// all headers contained in the document, in order of appearance
const allHeaders = view.find(`:header`).toArray()
// list of finaly assigned header IDs
let headerIds = new Set()
const headerIds = new Set()
for (let j = 0; j < allHeaders.length; j++) {
const $header = $(allHeaders[j])
const id = $header.attr('id')