Skip to content

Commit a35a336

Browse files
committedJan 28, 2017
bump 1.10.5
1 parent 3ec7c89 commit a35a336

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed
 

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.10.5
2+
### Bug fixes
3+
- fix initialize the Vue instance
4+
15
## 1.10.4
26
### Bug fixes
37
- fix execute script

‎docs/_coverpage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo](_media/icon.svg)
22

3-
# docsify <small>1.10.4</small>
3+
# docsify <small>1.10.5</small>
44

55
> A magical documentation site generator.
66

‎lib/docsify.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -2603,12 +2603,13 @@ function renderArticle (content) {
26032603
document.body.querySelectorAll('article>script'))
26042604
.filter(function (script) { return !/template/.test(script.type); }
26052605
)[0];
2606+
var code = script ? script.innerText.trim() : null;
26062607

2607-
CACHE.vm = script
2608-
? new Function(("return " + (script.innerText.trim())))()
2608+
script && script.remove();
2609+
CACHE.vm = code
2610+
? new Function(("return " + code))()
26092611
: new Vue({ el: 'main' }); // eslint-disable-line
26102612
CACHE.vm && CACHE.vm.$nextTick(function (_) { return scrollActiveSidebar(); });
2611-
script && script.remove();
26122613
}
26132614
if (OPTIONS$1.auto2top) { setTimeout(function () { return scroll2Top(OPTIONS$1.auto2top); }, 0); }
26142615
}

‎lib/docsify.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.