Clone in a terminal:
Commit a8a7119
Johan Mattsson - 2026-06-28T20:37:00+00:00
a8a711970f8621932211b33302740cf9e3b295f0johan.mattsson.m@gmail.com

Update component id

Changed files (1)

Diff

diff --git a/src/init.rs b/src/init.rsindex 6557b81..27eb6dc 100644--- a/src/init.rs+++ b/src/init.rs@@ -254,19 +254,19 @@ fn create_class(                     return class extends HTMLElement {                         constructor() {                             super();-                            this.componentId = -1;+                            this.kajaComponentId = -1;                         }                          connectedCallback() {-                            if (this.componentId === -1) {-                                this.componentId = __INIT_CALLBACK();+                            if (this.kajaComponentId === -1) {+                                this.kajaComponentId = __INIT_CALLBACK();                             } -                            __ATTACH_CALLBACK(this, this.componentId);+                            __ATTACH_CALLBACK(this, this.kajaComponentId);                         }                          disconnectedCallback() {-                            __DETACH_CALLBACK(this, this.componentId);+                            __DETACH_CALLBACK(this, this.kajaComponentId);                         }                          attributeChangedCallback(name, oldValue, newValue) {

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112