normalizeEvents() — vue Function Reference
Architecture documentation for the normalizeEvents() function in events.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD f7320e66_6354_0980_bd46_312d184fca09["normalizeEvents()"] b8d6eeb4_1bb7_3dbe_9017_1f1583ba5d60["updateDOMListeners()"] b8d6eeb4_1bb7_3dbe_9017_1f1583ba5d60 -->|calls| f7320e66_6354_0980_bd46_312d184fca09 2be3818d_a4f3_495c_543c_ee071b428982["isDef()"] f7320e66_6354_0980_bd46_312d184fca09 -->|calls| 2be3818d_a4f3_495c_543c_ee071b428982 style f7320e66_6354_0980_bd46_312d184fca09 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/platforms/web/runtime/modules/events.ts lines 16–31
function normalizeEvents(on) {
/* istanbul ignore if */
if (isDef(on[RANGE_TOKEN])) {
// IE input[type=range] only supports `change` event
const event = isIE ? 'change' : 'input'
on[event] = [].concat(on[RANGE_TOKEN], on[event] || [])
delete on[RANGE_TOKEN]
}
// This was originally intended to fix #4521 but no longer necessary
// after 2.5. Keeping it for backwards compat with generated code from < 2.4
/* istanbul ignore if */
if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || [])
delete on[CHECKBOX_RADIO_TOKEN]
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does normalizeEvents() do?
normalizeEvents() is a function in the vue codebase.
What does normalizeEvents() call?
normalizeEvents() calls 1 function(s): isDef.
What calls normalizeEvents()?
normalizeEvents() is called by 1 function(s): updateDOMListeners.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free