MCPcopy Index your code
hub / github.com/microsoft/SandDance / siblingCheck

Function siblingCheck

docs/app/js/sanddance-app.js:124450–124452  ·  view source on GitHub ↗
(node, sibling)

Source from the content-addressed store, hash-verified

124448 return node;
124449} // check if two nodes are ordered siblings
124450function siblingCheck(node, sibling) {
124451 return node.parentNode && node.parentNode.childNodes.length > 1 && node.previousSibling != sibling; // treat null/undefined the same
124452} // -- Set attributes & styles on SVG elements ---
124453let element = null, // temp var for current SVG element
124454values = null; // temp var for current values hash
124455// Extra configuration for certain mark types

Callers 1

bindFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected