bump: 3.6.1

This commit is contained in:
qingwei.li 2017-04-09 12:45:56 +08:00
parent c1df94662a
commit 8fb1350728
3 changed files with 15 additions and 8 deletions

View File

@ -1,4 +1,8 @@
# 3.6.1 / 2017-04-09
* feat(event): Collapse the sidebar when click outside element in the small screen
# 3.6.0 / 2017-04-09
* feat(render): add mergeNavbar option, close ([#125](https://github.com/QingWei-Li/docsify/issues/125)

View File

@ -416,17 +416,20 @@ var title = $.title;
* Toggle button
*/
function btn (el) {
var toggle = function () { return body.classList.toggle('close'); };
var toggle = function (_) { return body.classList.toggle('close'); };
el = getNode(el);
on(el, 'click', toggle);
on(el, 'click', function (e) {
e.stopPropagation();
toggle();
});
var sidebar = getNode('.sidebar');
on(sidebar, 'click', function () {
isMobile && toggle();
setTimeout(function () { return getAndActive(sidebar, true, true); }, 0);
});
isMobile && on(body, 'click', function (_) { return body.classList.contains('close') && toggle(); }
);
on(sidebar, 'click', function (_) { return setTimeout((function (_) { return getAndActive(sidebar, true, true); }, 0)); }
);
}
function sticky () {

4
lib/docsify.min.js vendored

File diff suppressed because one or more lines are too long