Home / Function/ getVendorPrefixedEventName() — react Function Reference

getVendorPrefixedEventName() — react Function Reference

Architecture documentation for the getVendorPrefixedEventName() function in getVendorPrefixedEventName.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e38b282e_6f61_7873_5880_18770843b001["getVendorPrefixedEventName()"]
  03fd5196_cd1d_cabf_69f7_e4ce815e6bb9["getVendorPrefixedEventName.js"]
  e38b282e_6f61_7873_5880_18770843b001 -->|defined in| 03fd5196_cd1d_cabf_69f7_e4ce815e6bb9
  style e38b282e_6f61_7873_5880_18770843b001 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/events/getVendorPrefixedEventName.js lines 78–94

function getVendorPrefixedEventName(eventName) {
  if (prefixedEventNames[eventName]) {
    return prefixedEventNames[eventName];
  } else if (!vendorPrefixes[eventName]) {
    return eventName;
  }

  const prefixMap = vendorPrefixes[eventName];

  for (const styleProp in prefixMap) {
    if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
      return (prefixedEventNames[eventName] = prefixMap[styleProp]);
    }
  }

  return eventName;
}

Domain

Subdomains

Frequently Asked Questions

What does getVendorPrefixedEventName() do?
getVendorPrefixedEventName() is a function in the react codebase, defined in packages/react-dom-bindings/src/events/getVendorPrefixedEventName.js.
Where is getVendorPrefixedEventName() defined?
getVendorPrefixedEventName() is defined in packages/react-dom-bindings/src/events/getVendorPrefixedEventName.js at line 78.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free