By extending our base class, you get an easy authoring experience as you would expect in writing your components:
-
@@ -35,7 +34,8 @@
- Extensible templates & renderer (examples in-progress)
- Provided out-of-the-box with McFly, a powerful no-framework framework
Version 2.0.0-beta is out! 🎉 diff --git a/src/WebComponent.js b/src/WebComponent.js index 313cc20..932715e 100644 --- a/src/WebComponent.js +++ b/src/WebComponent.js @@ -151,6 +151,7 @@ export class WebComponent extends HTMLElement { effectsMap[prop] = []; } effectsMap[prop].push(value.callback); + console.log('>>> ', Object.getPrototypeOf(obj[prop]).prop) } else if (oldValue !== value) { obj[prop] = value; effectsMap[prop]?.forEach((f) => f(value));