bump 1.10.5

This commit is contained in:
qingwei.li
2017-01-28 11:12:22 +08:00
parent 3ec7c89bbb
commit a35a336d00
4 changed files with 10 additions and 5 deletions

View File

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