createOnceHandler() — vue Function Reference
Architecture documentation for the createOnceHandler() function in events.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 34c2445b_200a_fb23_f095_2cea2106569e["createOnceHandler()"] 44694542_85f2_5950_e7db_32a2d3c573be["remove()"] 34c2445b_200a_fb23_f095_2cea2106569e -->|calls| 44694542_85f2_5950_e7db_32a2d3c573be style 34c2445b_200a_fb23_f095_2cea2106569e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/platforms/web/runtime/modules/events.ts lines 35–43
function createOnceHandler(event, handler, capture) {
const _target = target // save current target element in closure
return function onceHandler() {
const res = handler.apply(null, arguments)
if (res !== null) {
remove(event, onceHandler, capture, _target)
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does createOnceHandler() do?
createOnceHandler() is a function in the vue codebase.
What does createOnceHandler() call?
createOnceHandler() calls 1 function(s): remove.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free