MCPcopy Create free account
hub / github.com/Lobos/react-ui / warnStyleValueWithSemicolon

Function warnStyleValueWithSemicolon

docs/lib/react.js:640–647  ·  view source on GitHub ↗
(name, value, owner)

Source from the content-addressed store, hash-verified

638 };
639
640 var warnStyleValueWithSemicolon = function (name, value, owner) {
641 if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
642 return;
643 }
644
645 warnedStyleValues[value] = true;
646 "development" !== 'production' ? warning(false, 'Style property values shouldn\'t contain a semicolon.%s ' + 'Try "%s: %s" instead.', checkRenderMessage(owner), name, value.replace(badStyleValueWithSemicolonPattern, '')) : void 0;
647 };
648
649 var warnStyleValueIsNaN = function (name, value, owner) {
650 if (warnedForNaNValue) {

Callers 1

warnValidStyleFunction · 0.85

Calls 2

warningFunction · 0.85
checkRenderMessageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…