123456789101112131415161718192021222324252627282930 |
- /**
- * @hidden
- */
- export function indexForItem(element) {
- return element['$ionIndex'];
- }
- /**
- * @hidden
- */
- export function reorderListForItem(element) {
- return element['$ionReorderList'];
- }
- /**
- * @hidden
- */
- export function findReorderItem(node, listNode) {
- var 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;
- }
- //# sourceMappingURL=item-reorder-util.js.map
|