MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getVendorPrefixedEventName

Function getVendorPrefixedEventName

code/composition/public/app.js:6161–6177  ·  view source on GitHub ↗

* Attempts to determine the correct vendor prefixed event name. * * @param {string} eventName * @returns {string}

(eventName)

Source from the content-addressed store, hash-verified

6159 * @returns {string}
6160 */
6161function getVendorPrefixedEventName(eventName) {
6162 if (prefixedEventNames[eventName]) {
6163 return prefixedEventNames[eventName];
6164 } else if (!vendorPrefixes[eventName]) {
6165 return eventName;
6166 }
6167
6168 var prefixMap = vendorPrefixes[eventName];
6169
6170 for (var styleProp in prefixMap) {
6171 if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
6172 return prefixedEventNames[eventName] = prefixMap[styleProp];
6173 }
6174 }
6175
6176 return eventName;
6177}
6178
6179/**
6180 * Types of raw signals from the browser caught at the top level.

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected