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

Function hyphenateStyleName

code/composition/public/app.js:564–566  ·  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

562 * @return {string}
563 */
564function hyphenateStyleName(string) {
565 return hyphenate(string).replace(msPattern, '-ms-');
566}
567
568module.exports = hyphenateStyleName;
569},{"./hyphenate":11}],13:[function(require,module,exports){

Callers 1

Calls 1

hyphenateFunction · 0.70

Tested by

no test coverage detected