MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / any_sibling

Function any_sibling

MathBox/mathbox-bundle.js:47024–47041  ·  view source on GitHub ↗
(node, next, subj)

Source from the content-addressed store, hash-verified

47022 }
47023
47024 function any_sibling(node, next, subj) {
47025 var parent = options.parent(node)
47026 , children
47027
47028 children = options.children(parent)
47029
47030 for(var i = 0, len = children.length; i < len; ++i) {
47031 if(children[i] === node) {
47032 return null
47033 }
47034
47035 if(next(children[i], subj)) {
47036 return children[i]
47037 }
47038 }
47039
47040 return null
47041 }
47042
47043 function pseudo(token) {
47044 return valid_pseudo(options, token.data)

Callers

nothing calls this directly

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected