bubble_event() — svelte Function Reference
Architecture documentation for the bubble_event() function in misc.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD eb98ca55_51bf_b34e_5803_a5b2d9209c75["bubble_event()"] b0dea6fe_a39b_1574_4bd3_e0f24d88074a["misc.js"] eb98ca55_51bf_b34e_5803_a5b2d9209c75 -->|defined in| b0dea6fe_a39b_1574_4bd3_e0f24d88074a style eb98ca55_51bf_b34e_5803_a5b2d9209c75 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/dom/legacy/misc.js lines 30–41
export function bubble_event($$props, event) {
var events = /** @type {Record<string, Function[] | Function>} */ ($$props.$$events)?.[
event.type
];
var callbacks = is_array(events) ? events.slice() : events == null ? [] : [events];
for (var fn of callbacks) {
// Preserve "this" context
fn.call(this, event);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bubble_event() do?
bubble_event() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/legacy/misc.js.
Where is bubble_event() defined?
bubble_event() is defined in packages/svelte/src/internal/client/dom/legacy/misc.js at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free