diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-09 13:51:51 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-10-09 13:51:51 +0200 |
| commit | 09e8d4548361ece6151b914709c39e254eba65e3 (patch) | |
| tree | 5a6038dd219110c53e699109e03a5490260c3560 /src/z/Component.zig | |
| parent | d0f90548f5edb32225af4a1f79413a2a56d186c8 (diff) | |
framework: use js symbol for object tagging
Diffstat (limited to 'src/z/Component.zig')
| -rw-r--r-- | src/z/Component.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/z/Component.zig b/src/z/Component.zig index 11ab415..2f92b70 100644 --- a/src/z/Component.zig +++ b/src/z/Component.zig @@ -173,13 +173,13 @@ pub fn toElement(self: *const Self) []const Element { \\ const template = document.getElementById("@{s}"); \\ const node = document.importNode(template.content, true); \\ this.shadowRoot.appendChild(node); - \\ this['@ptr'] = null; + \\ this[ZsPtr] = null; \\ }} \\ connectedCallback() {{ \\ wasm_ready.then(() => {{ \\ const id = ObjectStore.generateFreeId(); \\ ObjectStore.registerObject(id, this); - \\ this['@ptr'] = wasm.exports['export::{s}::init'](id) + \\ this[ZsPtr] = wasm.exports['export::{s}::init'](id) \\ }}); \\ }} \\}}) |