[build] 4.3.5

This commit is contained in:
qingwei.li 2017-09-20 09:03:54 +08:00
commit 97793bfd6c
14 changed files with 89 additions and 18 deletions

View file

@ -238,6 +238,11 @@ function toggleClass (el, type, val) {
el && el.classList[val ? type : 'toggle'](val || type);
}
function style (content) {
appendTo(head, create('style', content));
}
var dom = Object.freeze({
getNode: getNode,
@ -251,7 +256,8 @@ var dom = Object.freeze({
before: before,
on: on,
off: off,
toggleClass: toggleClass
toggleClass: toggleClass,
style: style
});
var inBrowser = typeof window !== 'undefined';
@ -484,10 +490,10 @@ var cssVars = function (color) {
if (!/\.css$/.test(href)) { return }
get(href).then(function (res) {
var style = create('style', res);
var style$$1 = create('style', res);
head.appendChild(style);
replaceVar(style, color);
head.appendChild(style$$1);
replaceVar(style$$1, color);
});
}
});
@ -3950,7 +3956,7 @@ initGlobalAPI();
/**
* Version
*/
Docsify.version = '4.3.4';
Docsify.version = '4.3.5';
/**
* Run Docsify