(target, prop, receiver)
| 129 | // Using a Proxy to allow direct access to properties within `this.data` |
| 130 | export default new Proxy(instance, { |
| 131 | get(target, prop, receiver) { |
| 132 | // Prefer properties/methods on the instance itself (e.g., load, className) |
| 133 | if (Reflect.has(target, prop)) { |
| 134 | return Reflect.get(target, prop, receiver); |
| 135 | } |
| 136 | // Fallback to the data object |
| 137 | return target.data[prop]; |
| 138 | } |
| 139 | }); |
no test coverage detected