bump 1.0.3

This commit is contained in:
qingwei.li 2016-12-13 22:27:26 +08:00
parent 9092b22246
commit 844ba3e022
2 changed files with 6 additions and 7 deletions

View File

@ -2405,7 +2405,7 @@ function renderArticle (content) {
* navbar
*/
function renderNavbar (content) {
if (CACHE['navbar'] === content) { return }
if (CACHE['navbar'] && CACHE['navbar'] === content) { return }
CACHE['navbar'] = content;
renderNavbar.rendered = true;
@ -2417,10 +2417,6 @@ function renderNavbar (content) {
* sidebar
*/
function renderSidebar (content) {
if (CACHE['sidebar'] === content) { return }
CACHE['sidebar'] = content;
renderSidebar.rendered = true;
var isToc = false;
if (content) {
@ -2432,6 +2428,9 @@ function renderSidebar (content) {
isToc = true;
}
renderSidebar.rendered = true;
if (CACHE['sidebar'] && CACHE['sidebar'] === content) { return }
CACHE['sidebar'] = content;
renderTo('aside.sidebar', content);
if (isToc) { scrollActiveSidebar(); }
toc = [];

4
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long