Home / Function/ normalizeEvents() — vue Function Reference

normalizeEvents() — vue Function Reference

Architecture documentation for the normalizeEvents() function in events.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  187ccc03_9020_8449_4ea3_424a9a9dba90["normalizeEvents()"]
  a96f977a_276b_ffab_5b5b_538f5f278c2e["events.ts"]
  187ccc03_9020_8449_4ea3_424a9a9dba90 -->|defined in| a96f977a_276b_ffab_5b5b_538f5f278c2e
  f23fc88e_9232_6fcf_1ad5_147a5fa89b5c["updateDOMListeners()"]
  f23fc88e_9232_6fcf_1ad5_147a5fa89b5c -->|calls| 187ccc03_9020_8449_4ea3_424a9a9dba90
  style 187ccc03_9020_8449_4ea3_424a9a9dba90 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

Frequently Asked Questions

What does normalizeEvents() do?
normalizeEvents() is a function in the vue codebase, defined in src/platforms/web/runtime/modules/events.ts.
Where is normalizeEvents() defined?
normalizeEvents() is defined in src/platforms/web/runtime/modules/events.ts at line 16.
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