tabs -> spaces

This commit is contained in:
Jason Miller
2018-03-29 15:43:14 -04:00
parent 5e6500d196
commit 76ceea0e52
19 changed files with 503 additions and 471 deletions

View File

@@ -1,26 +1,26 @@
import { options } from 'preact';
const classNameDescriptor = {
enumerable: false,
configurable: true,
get() {
return this.class;
},
set(value) {
this.class = value;
}
enumerable: false,
configurable: true,
get() {
return this.class;
},
set(value) {
this.class = value;
}
};
let old = options.vnode;
options.vnode = vnode => {
let a = vnode.attributes;
if (a!=null) {
if ('className' in a) {
a.class = a.className;
}
if ('class' in a) {
Object.defineProperty(a, 'className', classNameDescriptor);
}
}
if (old != null) old(vnode);
};
let a = vnode.attributes;
if (a != null) {
if ('className' in a) {
a.class = a.className;
}
if ('class' in a) {
Object.defineProperty(a, 'className', classNameDescriptor);
}
}
if (old != null) old(vnode);
};