diff --git a/src/core.js b/src/core.js index 8d6e74f..94e790b 100644 --- a/src/core.js +++ b/src/core.js @@ -439,7 +439,6 @@ export function h(type, props, ...children) { // glue for nested children function JSXAddChild(child, cb) { - let childchild, elms, node if (isDLPtr(child)) { JSXAddFixedWrapper(child, cb) diff --git a/src/css.js b/src/css.js index edf8686..a7e3f87 100644 --- a/src/css.js +++ b/src/css.js @@ -5,7 +5,7 @@ export const cssmap = {} /* POLYFILL.SCOPE.START */ let scopeSupported function checkScopeSupported() { - if (scopeSupported) return true; + if (scopeSupported) return true const style = document.createElement('style') style.textContent = '@scope (.test) { :scope { color: red } }' document.head.appendChild(style) @@ -19,7 +19,7 @@ function checkScopeSupported() { document.body.removeChild(testElement) scopeSupported = computedColor == 'rgb(255, 0, 0)' - return scopeSupported; + return scopeSupported } const depth = 50 // polyfills @scope for firefox and older browsers, using a :not selector recursively increasing in depth @@ -61,7 +61,7 @@ function parseCombinedCss(str) { // compat layer for older browsers. when css nesting stablizes this can be removed str += '\n' - for (; ;) { + for (;;) { let [first, ...rest] = str.split('\n') if (first.trim().endsWith('{')) break