summaryrefslogtreecommitdiff
path: root/public/js/extra.js
diff options
context:
space:
mode:
authorBoHong Li2017-04-13 02:17:18 +0800
committerRaccoon Li2017-05-08 19:29:07 +0800
commit8c2b00b05a6492bdef9a3c1f9ab3130e4f042337 (patch)
treee6a5299291e498bf0b2183ed850abed956b00bce /public/js/extra.js
parent3919d4fc0e3be1152c1d362572bfbccca86e31da (diff)
style: Fixed variable already declared
Diffstat (limited to 'public/js/extra.js')
-rw-r--r--public/js/extra.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index 6febd880..bf388139 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -750,7 +750,7 @@ export function generateToc (id) {
'targetId': id,
'process': getHeaderContent
})
- /* eslint-enable no-unsed-vars */
+ /* eslint-enable no-unused-vars */
if (target.text() === 'undefined') { target.html('') }
const tocMenu = $('<div class="toc-menu"></div')
const toggle = $('<a class="expand-toggle" href="#">Expand all</a>')
@@ -888,7 +888,7 @@ export function renderTOC (view) {
const target = $(`#${id}`)
target.html('')
/* eslint-disable no-unused-vars */
- var toc = new window.Toc('doc', {
+ let TOC = new window.Toc('doc', {
'level': 3,
'top': -1,
'class': 'toc',