feat: remove proxy get handler for type restoration

This commit is contained in:
Ayo Ayco 2025-03-21 22:09:46 +01:00
parent b1cfdb4a9f
commit 77a2c63c19

View file

@ -154,11 +154,6 @@ export class WebComponent extends HTMLElement {
return true
},
get(obj, prop) {
// TODO: handle non-objects
if (obj[prop] !== null && obj[prop] !== undefined) {
Object.getPrototypeOf(obj[prop]).proxy = meta.#props
Object.getPrototypeOf(obj[prop]).prop = prop
}
return obj[prop]
},
}