* Gets the last child in the el, ignoring ghostEl or invisible elements (clones) * @param {HTMLElement} el Parent element * @param {selector} selector Any other elements that should be ignored * @return {HTMLElement} The last child, ignoring ghostEl
(el, selector)
| 375 | * @return {HTMLElement} The last child, ignoring ghostEl |
| 376 | */ |
| 377 | function lastChild(el, selector) { |
| 378 | var last = el.lastElementChild; |
| 379 | while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) { |
| 380 | last = last.previousElementSibling; |
| 381 | } |
| 382 | return last || null; |
| 383 | } |
| 384 | |
| 385 | /** |
| 386 | * Returns the index of an element within its parent for a selected set of |
no test coverage detected
searching dependent graphs…