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

Function getVendorPrefixedEventName

code/third-party/public/app.js:5256–5272  ·  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

5254 * @returns {string}
5255 */
5256function getVendorPrefixedEventName(eventName) {
5257 if (prefixedEventNames[eventName]) {
5258 return prefixedEventNames[eventName];
5259 } else if (!vendorPrefixes[eventName]) {
5260 return eventName;
5261 }
5262
5263 var prefixMap = vendorPrefixes[eventName];
5264
5265 for (var styleProp in prefixMap) {
5266 if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
5267 return prefixedEventNames[eventName] = prefixMap[styleProp];
5268 }
5269 }
5270
5271 return eventName;
5272}
5273
5274/**
5275 * 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