* 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)
| 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 | */ |
no outgoing calls
no test coverage detected