Function
selectImmediateAdjacentSibling
(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 |
Tested by
no test coverage detected