MCPcopy Create free account
hub / github.com/microsoft/SandDance / makePrefixMap

Function makePrefixMap

docs/external/js/react-dom.development.js:2717–2723  ·  view source on GitHub ↗

* Generate a mapping of standard vendor prefixes using the defined style property and event name. * * @param {string} styleProp * @param {string} eventName * @returns {object}

(styleProp, eventName)

Source from the content-addressed store, hash-verified

2715 */
2716
2717 function makePrefixMap(styleProp, eventName) {
2718 var prefixes = {};
2719 prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
2720 prefixes['Webkit' + styleProp] = 'webkit' + eventName;
2721 prefixes['Moz' + styleProp] = 'moz' + eventName;
2722 return prefixes;
2723 }
2724 /**
2725 * A list of event names to a configurable list of vendor prefixes.
2726 */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected