bump 1.10.4

This commit is contained in:
qingwei.li 2017-01-27 15:14:15 +08:00
commit 6f5bb1a527
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
![logo](_media/icon.svg) ![logo](_media/icon.svg)
# docsify <small>1.10.3</small> # docsify <small>1.10.4</small>
> A magical documentation site generator. > A magical documentation site generator.

View file

@ -2604,11 +2604,11 @@ function renderArticle (content) {
.filter(function (script) { return !/template/.test(script.type); } .filter(function (script) { return !/template/.test(script.type); }
)[0]; )[0];
CACHE.vm = script && script.remove() CACHE.vm = script
? new Function(("return " + (script.innerText.trim())))() ? new Function(("return " + (script.innerText.trim())))()
: new Vue({ el: 'main' }); // eslint-disable-line : new Vue({ el: 'main' }); // eslint-disable-line
CACHE.vm && CACHE.vm.$nextTick(function (_) { return scrollActiveSidebar(); }); CACHE.vm && CACHE.vm.$nextTick(function (_) { return scrollActiveSidebar(); });
script && script.remove();
} }
if (OPTIONS$1.auto2top) { setTimeout(function () { return scroll2Top(OPTIONS$1.auto2top); }, 0); } if (OPTIONS$1.auto2top) { setTimeout(function () { return scroll2Top(OPTIONS$1.auto2top); }, 0); }
} }

2
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long