MCPcopy Create free account
hub / github.com/Lucifier129/react-lite / warnHyphenatedStyleName

Function warnHyphenatedStyleName

examples/simple/react.js:682–689  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

680 var warnedStyleValues = {};
681
682 var warnHyphenatedStyleName = function (name) {
683 if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
684 return;
685 }
686
687 warnedStyleNames[name] = true;
688 "development" !== 'production' ? warning(false, 'Unsupported style property %s. Did you mean %s?', name, camelizeStyleName(name)) : undefined;
689 };
690
691 var warnBadVendoredStyleName = function (name) {
692 if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {

Callers 1

warnValidStyleFunction · 0.85

Calls 2

camelizeStyleNameFunction · 0.85
warningFunction · 0.50

Tested by

no test coverage detected