MCPcopy
hub / github.com/bendc/sprint / selectImmediateAdjacentSibling

Function selectImmediateAdjacentSibling

sprint.js:488–495  ·  view source on GitHub ↗
(sprintObj, direction, selector)

Source from the content-addressed store, hash-verified

486 }
487
488 var selectImmediateAdjacentSibling = function(sprintObj, direction, selector) {
489 var prop = direction + "ElementSibling"
490 return sprintObj.map(function() {
491 var el = this[prop]
492 if (!el || (selector && !sprintObj.is(selector, el))) return
493 return el
494 }, false)
495 }
496
497 var selectElements = function(selector, context) {
498 context = context || document

Callers 1

sprint.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected