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

Function warnStyleValueWithSemicolon

examples/simple/react.js:700–707  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

698 };
699
700 var warnStyleValueWithSemicolon = function (name, value) {
701 if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
702 return;
703 }
704
705 warnedStyleValues[value] = true;
706 "development" !== 'production' ? warning(false, 'Style property values shouldn\'t contain a semicolon. ' + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, '')) : undefined;
707 };
708
709 /**
710 * @param {string} name

Callers 1

warnValidStyleFunction · 0.85

Calls 1

warningFunction · 0.50

Tested by

no test coverage detected