mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
update doc comment
This commit is contained in:
@@ -105,14 +105,20 @@ _element_assigned_slots: Element.AssignedSlotLookup = .{},
|
|||||||
/// Lazily-created inline event listeners (or listeners provided as attributes).
|
/// Lazily-created inline event listeners (or listeners provided as attributes).
|
||||||
/// Avoids bloating all elements with extra function fields for rare usage.
|
/// Avoids bloating all elements with extra function fields for rare usage.
|
||||||
///
|
///
|
||||||
/// Use this when a listener provided like these:
|
/// Use this when a listener provided like this:
|
||||||
|
///
|
||||||
|
/// ```js
|
||||||
|
/// img.onload = () => { ... };
|
||||||
|
/// ```
|
||||||
|
///
|
||||||
|
/// Its also used as cache for such cases after lazy evaluation:
|
||||||
///
|
///
|
||||||
/// ```html
|
/// ```html
|
||||||
/// <img onload="(() => { ... })()" />
|
/// <img onload="(() => { ... })()" />
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// ```js
|
/// ```js
|
||||||
/// img.onload = () => { ... };
|
/// img.setAttribute("onload", "(() => { ... })()");
|
||||||
/// ```
|
/// ```
|
||||||
_element_attr_listeners: Element.AttrListenerLookup = .{},
|
_element_attr_listeners: Element.AttrListenerLookup = .{},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user