8 Matching Annotations
- Jun 2023
-
developer.mozilla.org developer.mozilla.org
-
The major use case of Reflect is to provide default forwarding behavior in Proxy handler traps. A trap is used to intercept an operation on an object — it provides a custom implementation for an object internal method. The Reflect API is used to invoke the corresponding internal method. For example, the code below creates a proxy p with a deleteProperty trap that intercepts the [[Delete]] internal method. Reflect.deleteProperty() is used to invoke the default [[Delete]] behavior on targetObject directly.
-
- Sep 2022
-
blog.saeloun.com blog.saeloun.com
- Jan 2021
-
-
If anyone needs this functionality, I've made a primitive approach to forward all standard UI events, plus any others you specify: https://github.com/hperrin/svelte-material-ui/blob/273ded17c978ece3dd87f32a58dd9839e5c61325/components/forwardEvents.js
-
- Nov 2020
-
web.archive.org web.archive.org
-
Portable... your .name address works with any email or web service. With our automatic forwarding service on third level domains, you can change email accounts, your ISP, or your job without changing your email address. Any mail sent to your .name address arrives in any email box you choose.
-
-
github.com github.com
-
All standard UI events are forwarded on components, input events ("input" and "change") are forwarded on input components, and all MDC events are forwarded.
-
- Sep 2020
-
github.com github.com
-
Forwarding events from the native element through the wrapper element comes with a cost, so to avoid adding extra event handlers only a few are forwarded. For all elements except <br> and <hr>, on:focus, on:blur, on:keypress, and on:click are forwarded. For audio and video, on:pause and on:play are also forwarded.
-
-
svelte.dev svelte.dev
-
If you want to listen to an event on some deeply nested component, the intermediate components must forward the event.
-
-
github.com github.com
-
If component authors were in the habit of expecting a style prop, and applying it to top-level elements, we could do the same thing like so
Seems to be the idea proposed here: https://github.com/sveltejs/svelte/pull/4749
-