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

Function getVendorPrefixedEventName

code/communication/public/app.js:6058–6074  ·  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

6056 * @returns {string}
6057 */
6058function getVendorPrefixedEventName(eventName) {
6059 if (prefixedEventNames[eventName]) {
6060 return prefixedEventNames[eventName];
6061 } else if (!vendorPrefixes[eventName]) {
6062 return eventName;
6063 }
6064
6065 var prefixMap = vendorPrefixes[eventName];
6066
6067 for (var styleProp in prefixMap) {
6068 if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
6069 return prefixedEventNames[eventName] = prefixMap[styleProp];
6070 }
6071 }
6072
6073 return eventName;
6074}
6075
6076/**
6077 * 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