a zip code crypto-currency system good for red ONLY

item-reorder-util.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. (function (factory) {
  2. if (typeof module === "object" && typeof module.exports === "object") {
  3. var v = factory(require, exports);
  4. if (v !== undefined) module.exports = v;
  5. }
  6. else if (typeof define === "function" && define.amd) {
  7. define(["require", "exports"], factory);
  8. }
  9. })(function (require, exports) {
  10. "use strict";
  11. Object.defineProperty(exports, "__esModule", { value: true });
  12. /**
  13. * @hidden
  14. */
  15. function indexForItem(element) {
  16. return element['$ionIndex'];
  17. }
  18. exports.indexForItem = indexForItem;
  19. /**
  20. * @hidden
  21. */
  22. function reorderListForItem(element) {
  23. return element['$ionReorderList'];
  24. }
  25. exports.reorderListForItem = reorderListForItem;
  26. /**
  27. * @hidden
  28. */
  29. function findReorderItem(node, listNode) {
  30. var nested = 0;
  31. while (node && nested < 4) {
  32. if (indexForItem(node) !== undefined) {
  33. if (listNode && node.parentNode !== listNode) {
  34. return null;
  35. }
  36. return node;
  37. }
  38. node = node.parentNode;
  39. nested++;
  40. }
  41. return null;
  42. }
  43. exports.findReorderItem = findReorderItem;
  44. });
  45. //# sourceMappingURL=item-reorder-util.js.map