MCPcopy Create free account
hub / github.com/caseywebdev/react-list / describeExpandedElement

Function describeExpandedElement

docs/index.js:20641–20668  ·  view source on GitHub ↗
(type, props, rowPrefix)

Source from the content-addressed store, hash-verified

20639 : '"' + value + '"';
20640 }
20641 function describeExpandedElement(type, props, rowPrefix) {
20642 var remainingRowLength = 120 - rowPrefix.length - type.length,
20643 properties = [],
20644 propName;
20645 for (propName in props)
20646 if (props.hasOwnProperty(propName) && "children" !== propName) {
20647 var propValue = describePropValue(
20648 props[propName],
20649 120 - rowPrefix.length - propName.length - 1
20650 );
20651 remainingRowLength -= propName.length + propValue.length + 2;
20652 properties.push(propName + "=" + propValue);
20653 }
20654 return 0 === properties.length
20655 ? rowPrefix + "<" + type + ">\n"
20656 : 0 < remainingRowLength
20657 ? rowPrefix + "<" + type + " " + properties.join(" ") + ">\n"
20658 : rowPrefix +
20659 "<" +
20660 type +
20661 "\n" +
20662 rowPrefix +
20663 " " +
20664 properties.join("\n" + rowPrefix + " ") +
20665 "\n" +
20666 rowPrefix +
20667 ">\n";
20668 }
20669 function describePropertiesDiff(clientObject, serverObject, indent) {
20670 var properties = "",
20671 remainingServerProperties = assign({}, serverObject),

Callers 2

describeElementDiffFunction · 0.85
describeNodeFunction · 0.85

Calls 1

describePropValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…