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

Function hyphenateStyleName

code/styling/public/app.js:299–301  ·  view source on GitHub ↗

* Hyphenates a camelcased CSS property name, for example: * * > hyphenateStyleName('backgroundColor') * < "background-color" * > hyphenateStyleName('MozTransition') * < "-moz-transition" * > hyphenateStyleName('msTransition') * < "-ms-transition" * * As Modernizr suggests (http:

(string)

Source from the content-addressed store, hash-verified

297 * @return {string}
298 */
299function hyphenateStyleName(string) {
300 return hyphenate(string).replace(msPattern, '-ms-');
301}
302
303module.exports = hyphenateStyleName;
304},{"./hyphenate":8}],10:[function(require,module,exports){

Callers 1

Calls 1

hyphenateFunction · 0.70

Tested by

no test coverage detected