stopPropagation() — svelte Function Reference
Architecture documentation for the stopPropagation() function in event-modifiers.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 72948d3d_a35f_64f1_880e_496d39c98799["stopPropagation()"] 10959c39_ee67_ccc9_0299_768227609d29["event-modifiers.js"] 72948d3d_a35f_64f1_880e_496d39c98799 -->|defined in| 10959c39_ee67_ccc9_0299_768227609d29 7a2c4b59_fc2a_bb0e_64d7_90ce67611a9c["apply()"] 72948d3d_a35f_64f1_880e_496d39c98799 -->|calls| 7a2c4b59_fc2a_bb0e_64d7_90ce67611a9c style 72948d3d_a35f_64f1_880e_496d39c98799 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/dom/legacy/event-modifiers.js lines 44–51
export function stopPropagation(fn) {
return function (...args) {
var event = /** @type {Event} */ (args[0]);
event.stopPropagation();
// @ts-ignore
return fn?.apply(this, args);
};
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does stopPropagation() do?
stopPropagation() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/legacy/event-modifiers.js.
Where is stopPropagation() defined?
stopPropagation() is defined in packages/svelte/src/internal/client/dom/legacy/event-modifiers.js at line 44.
What does stopPropagation() call?
stopPropagation() calls 1 function(s): apply.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free