hidden export function indexForItem ( element ) { return element [ '$ionIndex' ] ; } hidden export function reorderListForItem ( element ) { return element [ '$ionReorderList' ] ; } hidden export function findReorderItem ( node , listNode ) { let nested = 0 ; while ( node && nested < 4 ) { if ( indexForItem ( node ) !== undefined ) { if ( listNode && node . parentNode !== listNode ) { return null ; } return node ; } node = node . parentNode ; nested ++ ; } return null ; }