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

Function any_sibling

MathBox/mathbox-core.js:339–356  ·  view source on GitHub ↗
(node, next, subj)

Source from the content-addressed store, hash-verified

337 }
338
339 function any_sibling(node, next, subj) {
340 var parent = options.parent(node)
341 , children
342
343 children = options.children(parent)
344
345 for(var i = 0, len = children.length; i < len; ++i) {
346 if(children[i] === node) {
347 return null
348 }
349
350 if(next(children[i], subj)) {
351 return children[i]
352 }
353 }
354
355 return null
356 }
357
358 function pseudo(token) {
359 return valid_pseudo(options, token.data)

Callers

nothing calls this directly

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected