MCPcopy
hub / github.com/tastejs/todomvc / makePrefixMap

Function makePrefixMap

examples/typescript-react/js/bundle.js:1978–1986  ·  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

1976 * @returns {object}
1977 */
1978function makePrefixMap(styleProp, eventName) {
1979 var prefixes = {};
1980
1981 prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
1982 prefixes['Webkit' + styleProp] = 'webkit' + eventName;
1983 prefixes['Moz' + styleProp] = 'moz' + eventName;
1984
1985 return prefixes;
1986}
1987
1988/**
1989 * A list of event names to a configurable list of vendor prefixes.

Callers 1

bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected