* 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)
| 369 | * @return {HTMLElement} The last child, ignoring ghostEl |
| 370 | */ |
| 371 | function lastChild(el, selector) { |
| 372 | var last = el.lastElementChild; |
| 373 | while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) { |
| 374 | last = last.previousElementSibling; |
| 375 | } |
| 376 | return last || null; |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * Returns the index of an element within its parent for a selected set of |
no test coverage detected
searching dependent graphs…