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

Function getVendorPrefixedEventName

code/redux/public/app.js:6274–6290  ·  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

6272 * @returns {string}
6273 */
6274function getVendorPrefixedEventName(eventName) {
6275 if (prefixedEventNames[eventName]) {
6276 return prefixedEventNames[eventName];
6277 } else if (!vendorPrefixes[eventName]) {
6278 return eventName;
6279 }
6280
6281 var prefixMap = vendorPrefixes[eventName];
6282
6283 for (var styleProp in prefixMap) {
6284 if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
6285 return prefixedEventNames[eventName] = prefixMap[styleProp];
6286 }
6287 }
6288
6289 return eventName;
6290}
6291
6292/**
6293 * 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