diff options
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) \\ }}); \\ }} \\}}) |