[WIP] Tweak skooma state contract
This commit is contained in:
parent
dda6673f15
commit
dc29b10b1a
1 changed files with 2 additions and 2 deletions
|
@ -52,9 +52,9 @@ const getCustom = args => args.reduce(
|
|||
|
||||
const isElement = object => HTMLElement.prototype.isPrototypeOf(object)
|
||||
|
||||
const isReactive = object => object
|
||||
const isReactive = object => !(object instanceof HTMLElement)
|
||||
&& (object instanceof EventTarget)
|
||||
&& ("subscribe" in object)
|
||||
&& ("value" in object)
|
||||
|
||||
const toChild = arg => {
|
||||
if (typeof arg == "string" || typeof arg == "number") {
|
||||
|
|
Loading…
Reference in a new issue