From dc29b10b1a654af8ff933ec89acad0efe841cd17 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 22 Jan 2024 11:22:11 +0100 Subject: [PATCH] [WIP] Tweak skooma state contract --- skooma.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skooma.js b/skooma.js index e778f64..3c94abd 100644 --- a/skooma.js +++ b/skooma.js @@ -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") {