Remove uppercase node special case from skooma.js
This commit is contained in:
parent
7a61b965ba
commit
7e72b33325
1 changed files with 1 additions and 7 deletions
|
@ -27,10 +27,4 @@ export const node = (name, args) => {
|
||||||
return element
|
return element
|
||||||
}
|
}
|
||||||
|
|
||||||
export const html = new Proxy(Window, { get: (target, prop, receiver) => {
|
export const html = new Proxy(Window, { get: (target, prop, receiver) => { return (...args) => node(prop, args) }})
|
||||||
// This distinction is only helpful because javascript is fucking restarted
|
|
||||||
if (prop.search(/^[A-Z]/)+1)
|
|
||||||
return (arg) => node(prop, [arg])
|
|
||||||
else
|
|
||||||
return (...args) => node(prop, args)
|
|
||||||
}})
|
|
||||||
|
|
Loading…
Reference in a new issue