Skip to content
Browse files

built Olives

  • Loading branch information...
1 parent bda3439 commit 401ee7f5090fc16ebf1c3140a47b1ad2f4511596 @podefr podefr committed Sep 2, 2013
Showing with 691 additions and 626 deletions.
  1. +624 −587 build/Olives-map
  2. +20 −6 build/Olives.js
  3. +28 −28 build/Olives.min.js
  4. +1 −1 build/src/LocationRouter.js
  5. +18 −4 build/src/Stack.js
View
1,211 build/Olives-map
@@ -29,12 +29,12 @@
"VfUA/0CA+ADgBA/YCA+A9cGABABA/ACA+ADUBgBABABA/ACMBEBEBQDU/A/cDABABA/ACA+ADIBACA/ACA+k/EEA8AIA/ACA+U/A/AFA7Q7ULUCA/ACA+!AgDA9AEA8A/A0QUM/A/cDABABA/ACA+ADUBYCEBE+cDE9AEo8EFE7AIA/ACA+A/AEA8MFE1QMAyQRY/A/cDABABA/ACADQ/A/ADA9cEABABA/ACA+ADMDM/A/ADA9AEA8A/A4MOAyA/QSM/A/cDABABA/ACUBECA/ACA+A+QHY/A/ADA9B+sA7A2",
"WAg7A/!ASCA+ADsBA/YCA+A9cGEBABUBgBABABA/ACMBEBMBQDk/A/cDABABA/ACUBECE/UCECQ/E9kFE7AHA/ACA+MDE3QKA0QPk/A/cDEBABUBEBA+QFI/A/cDABABA/ACA+ADUBEDI/A/ADA9AEA8A+QJQ/A/cDABABA/ACA+ADUBEDQ/A/ADA9AEA8A+QJQ/A/cDABABA/ACA+ADA9AEUBEDQ/A/ADA9AEA8AFA7A+QK4/A/cDABABA/ACA+ADA9AEUBED4/A/ADA9AEA8AFA7A+QKc/A/cDABABA/ACA+ADA9AEA8AFUBYCEBE+cDE9UEEBE7oGE6AKA/gCMDM/E/",
"OAi+U/A/MFY/E/A9IGA6U8ALA1A+MQQ/A/AEc/A9cFEBABACE/AEU/A/ADE9MEA8gFA7A9A5AxNAhQ/A/ADA9AEA8AgNAlF/URAtB/RRAyY/A/cDABABA/ACA+ADA9AEA8AFIBUBEBE+cDE9UEEBE7oGE6UHEBE4kJA3QKEBgBMDM/E/A/MGU/A/MFY/E/A9IGA6U8ALo1MMA0A+EPcBEBABACE/AEU/A/ADE9MEA8gFA7A9AuEbMBQDI/A/AEc/A9AFA7QIQ/A/ADA9AEA8YFgBEBABADQ/A/wDA9AFc/A8EI4/A/AEc/A9AFA7A5B/VM2ZBCUBB+8RBHk/A/ADA9B8eA7A4",
-"WAkuA/YCA+EDA9cEEBABUBgBABABA/QCEBcD!AW/E/A+EFcD!AW/E/A6EJEBQDM/A/cDABABA/ACUBACMDM/A/ADA9E+AGo6sHE5AMs/A/ADA9A/AHQ/A/ADA9A6AKEuQTArQYY/A/cDABABA/ACMBABYBQEM/A/ADA9E/AIA/AEc/A/ADA9A+AIs/A/ADA9A5ANY/A/ADA9AEA8A0AREqQXAlQeU/A/cDABABA/ACUBECo/sCE+EJU/Q/A/AFo/A8c/A/cIABABA/ACMEM/A/ADA9E/AHs/A/ADA9A6A1MVArA/MZo/A/ADA9EmQeAg",
-"OAmqI/A/cDABABA/ACIBMDM/A/ADA9A/AFMBEBMDs/A/ADA9QGQ/A/ADA9AEA8AFA7YGEBAyM7YUUBAqQZQ/A/cDABABA/ACIBMDM/A/ADA9A/AFMBEBMDs/A/ADA9QGQ/A/ADA9AEA8AFA7YGEBAyM7YUUBAqQZQ/A/cDABABA/ACA+ADIBMDM/A/ADA9A/AFMBEBADc/A/ADA9EGY/A/ADA9AEA8EHY/A/ADA9AEA8AFA7EGABA/ADA/ACA+ADA9E+AIw/A/ADA9AEA8A6ANs/A/ADA9YEEBB/eM7ZAoUBB/WRAtY/A/cDABABA/ACA+ADUBACMDM/A/ADA9E+AGo6sHE5AMY/A/ADA9AEA8AFA7A/AJw/A/ADA9AGo/A/ADA9A8",
-"CAo1EoQZAlQes/A/cDABABA/ACUBEDc/A/ADA9A+QIU/A/cDEBABUBEDo/Y/A+QHM/A/cDABABA/ACUBQDs/A/ADA9E/AFA6QJQ/A/cDABABA/ACUBQEM/A/ADA9E/AIs/A/ADA9A/MFE2QLAzQQQ/A/cDABABA/ACUBQEM/A/ADA9E/AGo/I7AHE5MLQ/A/ADA9AGc/A/ADA9A8A/MJEvQSAsQXc/A/cDEBABADc/A/MEQ/A9MFA7A/QJc/A/cDEBABADc/A/MEQ/A9MFA7A/QJk/A/cDEBABUBEBA+QFo/A/cDABABA/ACUBEC",
-"qAqzA+ADA9AEA8QFA5QKw/A/cDEBABUBEBA+QFw/A/cDABABA/ACUBECo/sCE+AEA/ACA+MDE6QHA3QMo/A/ADA9B5pA7A6",
-"WArUA/8CA+ADcBA/YCA+A9cGABABA/ACA+ADcBEBEBABMBABQDU/A/cDABABA/ACUBEHU/A/IDA9M/E/U/A/IIA4A+QNU/A/cDABABA/ACUBEDQ/A/IDA9A+QIU/A/cDEBABMEg/U/A/MEA8MHU/A/UFg/Q/A9A7QN!AQ/E/QF!AR/E/AxQUc/A/cDEBABMDc/A/ADA9YG!AT/A/sDA9MF!AR/A8MGA6A7QOw/A/cDABABA/ACMEg/U/A/MEA8MHU/A/AIY/U/A/IEA8M/E/A9A7A/",
-"OAtB!AR/A/MGw/Q/A/MEA8QH!AQ/A/cDEBABUD!AQ/A/sDA9MF!AR/A8MGA6A/QK!AR/A/cDEBABACA/MEU/A/YDA9MF0/A8MGA6A9QM0/A/cDEBABUEg/Q/A/MGU/A/AFc/A/gDA9A9A7B95VCTgBEBABADk/A/MDABYBQBABA4B9mA2"],
+"WAkuA/YCA+ADYBA/A9cFEBABMBEBYCA/YCA+YDgBABABA/ACcBEBABABA/ACIBEBABE/ADY/A+A/AFMBEBACA/ACA+YDEGc/A/AEo/A9c/A/AHA5E/EJA3ALA/ACA+ADA9A2AOArA6M7FAhcD!AW/E/B/eFAlcD0/A/QDA9B/aFAqEBQDM/A/cDABABA/ACUBACMDM/A/ADA9E+AGo6sHE5AMs/A/ADA9A/AHQ/A/ADA9A6AKEuQTArQYY/A/cDABABA/ACMBABYBQEM/A/ADA9E/AIA/AEc/A/ADA9A+AIs/A/ADA9A5ANY/A/ADA9AEA8A0AREqQXAlQeU/A/cDABABA/ACUBEC",
+"qAmyE+EJU/Q/A/AFo/A8c/A/cIABABA/ACMEM/A/ADA9E/AHs/A/ADA9A6A1MVArA/MZo/A/ADA9EmQeAgRAjI/A/cDABABA/ACIBMDM/A/ADA9A/AFMBEBMDs/A/ADA9QGQ/A/ADA9AEA8AFA7YGEBAyM7YUUBAqQZQ/A/cDABABA/ACIBMDM/A/ADA9A/AFMBEBMDs/A/ADA9QGQ/A/ADA9AEA8AFA7YGEBAyM7YUUBAqQZQ/A/cDABABA/ACA+ADIBMDM/A/ADA9A/AFMBEBADc/A/ADA9EGY/A/ADA9AEA8EFABA/ADA/ACA+E+AHw/A/ADA9AEA8A7AMs/A/ADA9EGY/A/ADA9AEA8AFA7YGEBB/fM7ZAnUBB/X",
+"OAo8Y/A/cDABABA/ACA+ADUBACMDM/A/ADA9E+AGo6sHE5AMY/A/ADA9AEA8AFA7A/AJw/A/ADA9AGo/A/ADA9A8A4AQEoQZAlQes/A/cDABABA/ACUBEDc/A/ADA9A+QIU/A/cDEBABUBEDo/Y/A+QHM/A/cDABABA/ACUBQDs/A/ADA9E/AFA6QJQ/A/cDABABA/ACUBQEM/A/ADA9E/AIs/A/ADA9A/MFE2QLAzQQQ/A/cDABABA/ACUBQEM/A/ADA9E/AGo/I7AHE5MLQ/A/ADA9AGc/A/ADA9A8A/MJEvQSAsQXc/A/cDEBABADc/A/MEQ/A9MFA7A/",
+"OAq9c/A/cDEBABADc/A/MEQ/A9MFA7A/QJk/A/cDEBABUBEBA+QFo/A/cDABABA/ACUBECo/sCA+ADA9AEA8QFA5QKw/A/cDEBABUBEBA+QFw/A/cDABABA/ACUBECo/sCE+AEA/ACA+MDE6QHA3QMo/A/ADA9B5JA2A5",
+"WAr6A/8CA+ADcBA/YCA+A9cGABABA/ACA+ADcBEBEBABMBABQDU/A/cDABABA/ACUBEHU/A/IDA9M/E/U/A/IIA4A+QNU/A/cDABABA/ACUBEDQ/A/IDA9A+QIU/A/cDEBABMEg/U/A/MEA8MHU/A/UFg/Q/A9A7QN!AQ/E/QF!AR/E/AxQUc/A/cDEBABMDc/A/ADA9YG!AT/A/sDA9MF!AR/A8MGA6A7QOw/A/cDABABA/ACMEg/U/A/MEA8MHU/A/AIY/U/A/IEA8M/E/A9A7A/",
+"OAtn!AR/A/MGw/Q/A/MEA8QH!AQ/A/cDEBABUD!AQ/A/sDA9MF!AR/A8MGA6A/QK!AR/A/cDEBABACA/MEU/A/ME0/A9MFA7A9QL0/A/cDEBABUEg/Q/A/MGU/A/AFc/A/gDA9A9A7B96VCSgBEBABADk/A/MDABYBQBABA4B9nA2"],
"mappings":[[0,13,6],
[0,13,0,0],
[0,13,7],
@@ -2388,598 +2388,635 @@
[0,1636,0,0],
[0,1636,7],
[0,1636,15],
+[0,1636,16],
[0,1645,0,314],
[0,1645,14],
[0,1645,17],
[0,1649,1],
-[0,1649,8,315],
-[0,1649,33],
-[0,1649,34,188],
-[0,1649,43],
-[0,1655,6,190],
-[0,1655,47],
-[0,1655,16,8],
-[0,1655,16,9],
-[0,1661,2,316],
-[0,1661,46],
-[0,1661,15,8],
-[0,1661,15,9],
-[0,1668,2,317],
-[0,1668,16],
-[0,1675,2],
-[0,1675,2,241],
-[0,1675,2],
-[0,1675,13,242],
-[0,1675,25],
-[0,1675,26,3],
-[0,1675,31],
-[0,1676,3],
-[0,1676,3],
-[0,1676,7],
-[0,1676,16],
-[0,1676,8,114],
-[0,1676,8],
-[0,1676,17,3],
-[0,1676,25,3],
-[0,1676,40,24],
-[0,1679,11,3],
-[0,1678,20],
-[0,1677,23],
-[0,1677,4,7],
-[0,1677,4,190],
-[0,1677,24,3],
-[0,1678,20],
-[0,1678,4,127],
-[0,1678,4,317],
-[0,1678,21,3],
-[0,1679,11,3],
-[0,1681,11],
-[0,1690,2],
-[0,1690,2,318],
-[0,1690,2],
-[0,1690,16,319],
-[0,1690,31],
-[0,1690,32,3],
-[0,1690,37],
-[0,1691,3],
-[0,1691,7,320],
-[0,1692,3],
-[0,1692,3],
-[0,1692,15],
-[0,1692,7,114],
-[0,1692,7],
-[0,1692,16,3],
-[0,1696,11,3],
-[0,1695,22],
-[0,1694,23],
-[0,1693,4,320],
-[0,1693,31],
-[0,1693,12,33],
-[0,1693,12,317],
-[0,1693,32,3],
-[0,1694,23],
-[0,1694,4,75],
-[0,1694,4,190],
-[0,1694,24,3],
-[0,1695,22],
-[0,1695,4,321],
-[0,1695,4,317],
-[0,1695,23,320],
-[0,1695,30],
-[0,1696,11,3],
-[0,1698,11],
-[0,1707,2],
-[0,1707,2,261],
-[0,1707,2],
-[0,1707,15,266],
-[0,1707,29],
-[0,1707,30,322],
-[0,1707,44],
-[0,1708,3],
-[0,1708,3],
-[0,1708,7,322],
-[0,1708,31,24],
-[0,1714,26],
-[0,1709,45],
-[0,1709,4,45],
-[0,1709,17],
-[0,1709,4,176],
-[0,1709,4,153],
-[0,1709,4],
-[0,1709,18,259],
-[0,1709,18,190],
-[0,1709,46],
-[0,1709,55],
-[0,1709,56,323],
-[0,1709,66],
-[0,1710,5],
-[0,1710,17],
-[0,1710,9,114],
-[0,1710,9],
-[0,1710,18,323],
-[0,1711,30],
-[0,1711,6,7],
-[0,1711,6,322],
-[0,1711,31,323],
-[0,1713,7],
-[0,1714,26],
-[0,1714,11,324],
-[0,1714,11],
-[0,1714,27,322],
+[0,1649,5,1],
+[0,1649,20],
+[0,1649,13,315],
+[0,1649,21],
+[0,1651,1],
+[0,1651,8,316],
+[0,1651,33],
+[0,1651,34,188],
+[0,1651,43],
+[0,1777,2,317],
+[0,1777,11,317],
+[0,1777,30],
+[0,1777,31,318],
+[0,1777,41],
+[0,1778,3],
+[0,1778,16],
+[0,1778,7,318],
+[0,1778,19,18],
+[0,1778,19,319],
+[0,1778,3],
+[0,1781,3],
+[0,1781,7,320],
+[0,1781,21],
+[0,1781,21,319],
+[0,1781,33,318],
+[0,1782,3],
+[0,1782,3],
+[0,1782,48],
+[0,1782,7,33],
+[0,1782,20],
+[0,1782,7,34],
+[0,1782,7,1],
+[0,1782,21,259],
+[0,1782,21,190],
+[0,1782,49,320],
+[0,1782,66],
+[0,1783,30],
+[0,1783,11,317],
+[0,1783,31,318],
+[0,1783,41],
+[0,1785,11,320],
+[0,1657,6,190],
+[0,1657,47],
+[0,1657,16,8],
+[0,1657,16,9],
+[0,1663,2,321],
+[0,1663,37],
+[0,1663,15,256],
+[0,1663,15,9],
+[0,1663,38],
+[0,1670,2,319],
+[0,1670,16],
+[0,1677,2],
+[0,1677,2,241],
+[0,1677,2],
+[0,1677,13,242],
+[0,1677,25],
+[0,1677,26,3],
+[0,1677,31],
+[0,1678,3],
+[0,1678,3],
+[0,1678,7],
+[0,1678,16],
+[0,1678,8,114],
+[0,1678,8],
+[0,1678,17,3],
+[0,1678,25,3],
+[0,1678,40,24],
+[0,1681,11,3],
+[0,1680,20],
+[0,1679,23],
+[0,1679,4,7],
+[0,1679,4,190],
+[0,1679,24,3],
+[0,1680,20],
+[0,1680,4,127],
+[0,1680,4,319],
+[0,1680,21,3],
+[0,1681,11,3],
+[0,1683,11],
+[0,1692,2],
+[0,1692,2,322],
+[0,1692,2],
+[0,1692,16,323],
+[0,1692,31],
+[0,1692,32,3],
+[0,1692,37],
+[0,1693,3],
+[0,1693,7,324],
+[0,1694,3],
+[0,1694,3],
+[0,1694,15],
+[0,1694,7,114],
+[0,1694,7],
+[0,1694,16,3],
+[0,1698,11,3],
+[0,1697,22],
+[0,1696,23],
+[0,1695,4,324],
+[0,1695,31],
+[0,1695,12,33],
+[0,1695,12,319],
+[0,1695,32,3],
+[0,1696,23],
+[0,1696,4,75],
+[0,1696,4,190],
+[0,1696,24,3],
+[0,1697,22],
+[0,1697,4,325],
+[0,1697,4,319],
+[0,1697,23,324],
+[0,1697,30],
+[0,1698,11,3],
+[0,1700,11],
+[0,1709,2],
+[0,1709,2,261],
+[0,1709,2],
+[0,1709,15,266],
+[0,1709,29],
+[0,1709,30,326],
+[0,1709,44],
+[0,1710,3],
+[0,1710,3],
+[0,1710,7,326],
+[0,1710,31,24],
+[0,1716,26],
+[0,1711,45],
+[0,1711,4,45],
+[0,1711,17],
+[0,1711,4,176],
+[0,1711,4,153],
+[0,1711,4],
+[0,1711,18,259],
+[0,1711,18,190],
+[0,1711,46],
+[0,1711,55],
+[0,1711,56,327],
+[0,1711,66],
+[0,1712,5],
+[0,1712,17],
+[0,1712,9,114],
+[0,1712,9],
+[0,1712,18,327],
+[0,1713,30],
+[0,1713,6,7],
+[0,1713,6,326],
+[0,1713,31,327],
+[0,1715,7],
+[0,1716,26],
+[0,1716,11,328],
[0,1716,11],
-[0,1725,2],
-[0,1725,2,325],
-[0,1725,2],
-[0,1725,12,326],
-[0,1725,23],
-[0,1725,24,3],
-[0,1725,29],
-[0,1726,3],
-[0,1726,15],
-[0,1726,7,114],
-[0,1726,7],
-[0,1726,16,3],
-[0,1726,22],
-[0,1727,4],
-[0,1727,8,327],
-[0,1727,38],
-[0,1727,22,328],
-[0,1727,22],
-[0,1727,39,3],
-[0,1728,13],
-[0,1728,4,329],
-[0,1728,4],
-[0,1728,14,3],
-[0,1728,19,327],
-[0,1728,33],
+[0,1716,27,326],
+[0,1718,11],
+[0,1727,2],
+[0,1727,2,329],
+[0,1727,2],
+[0,1727,12,330],
+[0,1727,23],
+[0,1727,24,3],
+[0,1727,29],
+[0,1728,3],
+[0,1728,15],
+[0,1728,7,114],
+[0,1728,7],
+[0,1728,16,3],
+[0,1728,22],
[0,1729,4],
-[0,1729,11,3],
+[0,1729,8,331],
+[0,1729,38],
+[0,1729,22,332],
+[0,1729,22],
+[0,1729,39,3],
+[0,1730,13],
+[0,1730,4,333],
+[0,1730,4],
+[0,1730,14,3],
+[0,1730,19,331],
+[0,1730,33],
[0,1731,4],
-[0,1731,11],
-[0,1740,2],
-[0,1740,2,330],
-[0,1740,2],
-[0,1740,14,331],
-[0,1740,27],
-[0,1740,28,3],
-[0,1740,33],
-[0,1741,3],
-[0,1741,15],
-[0,1741,7,114],
-[0,1741,7],
-[0,1741,16,3],
-[0,1741,22],
-[0,1742,4],
-[0,1742,8,327],
-[0,1742,38],
-[0,1742,22,328],
-[0,1742,22],
-[0,1742,39,3],
-[0,1743,13],
-[0,1743,4,329],
-[0,1743,4],
-[0,1743,14,3],
-[0,1743,19,327],
-[0,1743,33],
+[0,1731,11,3],
+[0,1733,4],
+[0,1733,11],
+[0,1742,2],
+[0,1742,2,334],
+[0,1742,2],
+[0,1742,14,335],
+[0,1742,27],
+[0,1742,28,3],
+[0,1742,33],
+[0,1743,3],
+[0,1743,15],
+[0,1743,7,114],
+[0,1743,7],
+[0,1743,16,3],
+[0,1743,22],
[0,1744,4],
-[0,1744,11,3],
+[0,1744,8,331],
+[0,1744,38],
+[0,1744,22,332],
+[0,1744,22],
+[0,1744,39,3],
+[0,1745,13],
+[0,1745,4,333],
+[0,1745,4],
+[0,1745,14,3],
+[0,1745,19,331],
+[0,1745,33],
[0,1746,4],
-[0,1746,11],
-[0,1756,2],
-[0,1756,2,329],
-[0,1756,2],
-[0,1756,14,332],
-[0,1756,27],
-[0,1756,28,3],
-[0,1756,33,333],
-[0,1756,43],
-[0,1757,3],
-[0,1757,15],
-[0,1757,7,114],
-[0,1757,7],
-[0,1757,16,3],
-[0,1757,22],
-[0,1758,4],
-[0,1758,8,334],
-[0,1758,38],
-[0,1758,19,33],
-[0,1758,19,317],
-[0,1758,39,3],
+[0,1746,11,3],
+[0,1748,4],
+[0,1748,11],
+[0,1758,2],
+[0,1758,2,333],
+[0,1758,2],
+[0,1758,14,336],
+[0,1758,27],
+[0,1758,28,3],
+[0,1758,33,318],
+[0,1758,43],
+[0,1759,3],
+[0,1759,15],
+[0,1759,7,114],
+[0,1759,7],
+[0,1759,16,3],
[0,1759,22],
-[0,1759,4,321],
-[0,1759,4,317],
-[0,1759,23,334],
-[0,1759,33],
-[0,1760,22],
-[0,1760,4,321],
-[0,1760,4,317],
-[0,1760,23,333],
-[0,1760,33],
-[0,1760,36,3],
-[0,1764,4],
-[0,1763,8,335],
-[0,1763,22],
-[0,1763,22,317],
-[0,1763,34,333],
-[0,1763,44],
-[0,1765,25],
-[0,1765,5,100],
-[0,1765,5,190],
-[0,1765,26,3],
-[0,1765,31,335],
-[0,1767,24],
-[0,1767,5,7],
-[0,1767,5,190],
-[0,1767,25,3],
-[0,1769,4],
-[0,1769,11,3],
+[0,1760,4],
+[0,1760,8,337],
+[0,1760,38],
+[0,1760,19,33],
+[0,1760,19,319],
+[0,1760,39,3],
+[0,1761,22],
+[0,1761,4,325],
+[0,1761,4,319],
+[0,1761,23,337],
+[0,1761,33],
+[0,1765,4],
+[0,1764,8,320],
+[0,1764,41],
+[0,1764,22,317],
+[0,1764,42,318],
+[0,1766,25],
+[0,1766,5,100],
+[0,1766,5,190],
+[0,1766,26,3],
+[0,1766,31,320],
+[0,1768,24],
+[0,1768,5,7],
+[0,1768,5,190],
+[0,1768,25,3],
+[0,1770,22],
+[0,1770,4,325],
+[0,1770,4,319],
+[0,1770,23,318],
+[0,1770,33],
+[0,1770,36,3],
[0,1771,4],
-[0,1771,11],
-[0,1781,2],
-[0,1781,2,336],
-[0,1781,2],
-[0,1781,16,337],
-[0,1781,31],
-[0,1781,32,3],
-[0,1781,37,333],
-[0,1781,47],
-[0,1782,3],
-[0,1782,3],
-[0,1782,7],
-[0,1782,16],
-[0,1782,8,114],
-[0,1782,8],
-[0,1782,17,3],
-[0,1782,25,3],
-[0,1782,40,24],
-[0,1785,11,3],
-[0,1784,24],
-[0,1783,22],
-[0,1783,4,321],
-[0,1783,4,317],
-[0,1783,23,333],
-[0,1783,33],
-[0,1783,36,3],
-[0,1784,24],
-[0,1784,4,100],
-[0,1784,4,190],
-[0,1784,25,3],
-[0,1784,30],
-[0,1784,30,259],
-[0,1784,30,190],
-[0,1784,49,333],
-[0,1785,11,3],
-[0,1787,11],
-[0,1796,2],
-[0,1796,2,328],
-[0,1796,2],
-[0,1796,21,338],
-[0,1796,41],
-[0,1796,42,3],
-[0,1796,47],
-[0,1797,3],
-[0,1797,29],
-[0,1797,10,33],
-[0,1797,10,317],
-[0,1797,30,3],
-[0,1804,2],
-[0,1804,2,339],
-[0,1804,2],
-[0,1804,15,340],
-[0,1804,29],
-[0,1804,32],
-[0,1805,3],
-[0,1805,10,18],
-[0,1805,10,259],
-[0,1805,10,190],
-[0,1813,2],
-[0,1813,2,114],
-[0,1813,2],
-[0,1813,13,341],
-[0,1813,25],
-[0,1813,26,323],
-[0,1813,36],
-[0,1814,3],
-[0,1814,26],
-[0,1814,10,328],
-[0,1814,10],
-[0,1814,27,323],
-[0,1814,40],
-[0,1823,2],
-[0,1823,2,342],
-[0,1823,2],
-[0,1823,14,343],
-[0,1823,27],
-[0,1823,28,3],
-[0,1823,33],
-[0,1824,3],
-[0,1824,3],
-[0,1824,15],
-[0,1824,7,114],
-[0,1824,7],
-[0,1824,16,3],
-[0,1826,11],
-[0,1825,26],
-[0,1825,4,7],
-[0,1825,4,316],
-[0,1825,27,3],
-[0,1826,11],
-[0,1828,11],
-[0,1838,2],
-[0,1838,2,344],
-[0,1838,2],
-[0,1838,14,345],
-[0,1838,27],
-[0,1838,28,3],
-[0,1838,33],
-[0,1839,3],
-[0,1839,3],
-[0,1839,15],
-[0,1839,7,114],
-[0,1839,7],
-[0,1839,16,3],
-[0,1839,24,6],
-[0,1839,24,3],
-[0,1839,43,316],
-[0,1841,11],
-[0,1840,13],
-[0,1840,4,329],
-[0,1840,4],
-[0,1840,14,3],
-[0,1840,38],
-[0,1840,19,33],
-[0,1840,19,317],
-[0,1840,39,3],
-[0,1841,11],
-[0,1843,11],
-[0,1850,2],
-[0,1850,2,346],
-[0,1850,2],
-[0,1850,17,347],
-[0,1850,33],
-[0,1850,36],
-[0,1851,22],
-[0,1851,3,45],
-[0,1851,3,317],
-[0,1851,23,342],
-[0,1851,23],
-[0,1851,34],
-[0,1857,2],
-[0,1857,2,348],
-[0,1857,2],
-[0,1857,17,349],
-[0,1857,33],
-[0,1857,36],
-[0,1858,22],
-[0,1858,3,45],
-[0,1858,3,317],
-[0,1858,23,344],
-[0,1858,23],
-[0,1858,34],
-[0,1865,2],
-[0,1865,2,203],
-[0,1865,2],
-[0,1865,19,204],
-[0,1865,38],
-[0,1865,41],
-[0,1866,4],
-[0,1866,11,190],
-[0,1873,2],
-[0,1873,2,324],
-[0,1873,2],
-[0,1873,20,350],
-[0,1873,39],
-[0,1873,40,31],
-[0,1873,48],
-[0,1874,3],
-[0,1874,3],
-[0,1874,7,31],
-[0,1874,25,24],
-[0,1875,4,190],
-[0,1875,14,31],
-[0,1878,11],
-[0,1886,2],
-[0,1886,2,351],
-[0,1886,2],
-[0,1886,22,352],
-[0,1886,43],
-[0,1886,46],
-[0,1887,3],
-[0,1887,10,316],
-[0,1894,2],
-[0,1894,2,353],
-[0,1894,2],
-[0,1894,22,354],
-[0,1894,43],
-[0,1894,44,355],
-[0,1894,55],
-[0,1895,3],
-[0,1895,3],
-[0,1895,7,355],
-[0,1895,28,24],
-[0,1897,11],
-[0,1896,4,316],
-[0,1896,17,355],
-[0,1897,11],
-[0,1899,11],
-[0,1903,17],
-[0,1903,2,324],
-[0,1903,2],
-[0,1903,18,188],
-[0,1915,6],
-[0,1915,0,0],
-[0,1915,7],
-[0,1915,24],
-[0,1915,25],
-[0,1915,35],
-[0,1922,0,356],
-[0,1922,23],
-[0,1922,24,357],
-[0,1922,32,1],
-[0,1922,39],
-[0,1926,4,358],
-[0,1926,13,358],
-[0,1926,38],
-[0,1926,41],
-[0,1932,8],
-[0,1932,12,359],
-[0,1945,8],
-[0,1945,8,226],
-[0,1945,8],
-[0,1945,21,360],
-[0,1945,35],
-[0,1945,36,361],
-[0,1945,42],
-[0,1946,12],
-[0,1946,46],
-[0,1946,19,15],
-[0,1946,38],
-[0,1946,19,362],
-[0,1946,29],
-[0,1946,19,15],
-[0,1946,19,361],
-[0,1946,30],
-[0,1946,47],
-[0,1960,8],
-[0,1960,8,363],
-[0,1960,8],
-[0,1960,21,364],
-[0,1960,35],
-[0,1960,36,365],
-[0,1960,42],
-[0,1961,12],
-[0,1961,28],
-[0,1961,19,16],
-[0,1961,19,365],
-[0,1961,29],
-[0,1970,8],
-[0,1970,8,86],
-[0,1970,8],
-[0,1970,21,366],
-[0,1970,35],
-[0,1970,38],
-[0,1972,31],
-[0,1972,12,119],
-[0,1972,12,367],
-[0,1972,12],
-[0,1972,32],
-[0,1971,39,368],
-[0,1971,29,226],
-[0,1971,29],
-[0,1971,40,361],
-[0,1971,40,369],
-[0,1971,40,370],
-[0,1973,33],
-[0,1973,12,371],
-[0,1973,12],
-[0,1974,34],
-[0,1974,12,372],
-[0,1974,12],
-[0,1980,8],
-[0,1980,8,373],
-[0,1980,8],
-[0,1980,23,374],
-[0,1980,39],
-[0,1980,42],
-[0,1981,24],
-[0,1981,12,375],
-[0,1981,12],
-[0,1981,25,359],
-[0,1982,38],
-[0,1982,12,376],
-[0,1982,12,370],
-[0,1982,39],
-[0,1982,53,377],
-[0,1982,53],
-[0,1982,77],
-[0,1989,8],
-[0,1989,8,378],
-[0,1989,8],
-[0,1989,29,379],
-[0,1989,50],
-[0,1989,51,170],
-[0,1989,58],
-[0,1991,31],
-[0,1991,12,119],
-[0,1991,12,367],
-[0,1991,12],
-[0,1991,32],
-[0,1990,39,368],
-[0,1990,29,226],
-[0,1990,29],
-[0,1990,67],
-[0,1990,40,362],
-[0,1990,58],
-[0,1990,40,15],
-[0,1990,40,380],
-[0,1990,40,170],
-[0,1990,59],
-[0,1998,8],
-[0,1998,8,377],
-[0,1998,8],
-[0,1998,55],
-[0,1998,33,146],
-[0,1998,33,378],
-[0,1998,33],
-[0,1998,56],
-[0,2005,8],
-[0,2005,8,371],
-[0,2005,8],
-[0,2005,32,381],
-[0,2005,57],
-[0,2005,60],
-[0,2006,35],
-[0,2006,12,158],
-[0,2006,12,370],
-[0,2006,36],
-[0,2006,50,377],
-[0,2006,50],
-[0,2006,74],
-[0,2013,8],
-[0,2013,8,372],
-[0,2013,8],
-[0,2013,33,382],
-[0,2013,59],
-[0,2013,62],
-[0,2014,12],
-[0,2014,12,359],
-[0,2014,37],
-[0,2014,27,139],
-[0,2014,27],
-[0,2014,38],
-[0,2014,47,383],
-[0,2014,47],
-[0,2014,67],
-[0,2022,8],
-[0,2022,8,383],
-[0,2022,8],
-[0,2022,29,384],
-[0,2022,51],
-[0,2022,54],
-[0,2023,12],
-[0,2023,12,361],
-[0,2023,12,369],
-[0,2023,12,370],
-[0,2023,45],
-[0,2023,35,363],
-[0,2023,35],
-[0,2023,59],
-[0,2023,46,34],
-[0,2023,46,1],
-[0,2023,60,154],
-[0,2028,4],
-[0,2028,11,385],
-[0,2028,41],
-[0,2028,44],
-[0,2029,8],
-[0,2029,8,177],
-[0,2029,8,358],
-[0,2029,56],
-[0,2029,50,357],
-[0,2030,8],
-[0,2030,44],
-[0,2030,19,358],
+[0,1771,11,3],
+[0,1773,4],
+[0,1773,11],
+[0,1795,2],
+[0,1795,2,338],
+[0,1795,2],
+[0,1795,16,339],
+[0,1795,31],
+[0,1795,32,3],
+[0,1795,37,318],
+[0,1795,47],
+[0,1796,3],
+[0,1796,3],
+[0,1796,7],
+[0,1796,16],
+[0,1796,8,114],
+[0,1796,8],
+[0,1796,17,3],
+[0,1796,25,3],
+[0,1796,40,24],
+[0,1799,11,3],
+[0,1798,24],
+[0,1797,22],
+[0,1797,4,325],
+[0,1797,4,319],
+[0,1797,23,318],
+[0,1797,33],
+[0,1797,36,3],
+[0,1798,24],
+[0,1798,4,100],
+[0,1798,4,190],
+[0,1798,25,3],
+[0,1798,30],
+[0,1798,30,259],
+[0,1798,30,190],
+[0,1798,49,318],
+[0,1799,11,3],
+[0,1801,11],
+[0,1810,2],
+[0,1810,2,332],
+[0,1810,2],
+[0,1810,21,340],
+[0,1810,41],
+[0,1810,42,3],
+[0,1810,47],
+[0,1811,3],
+[0,1811,29],
+[0,1811,10,33],
+[0,1811,10,319],
+[0,1811,30,3],
+[0,1818,2],
+[0,1818,2,341],
+[0,1818,2],
+[0,1818,15,342],
+[0,1818,29],
+[0,1818,32],
+[0,1819,3],
+[0,1819,10,18],
+[0,1819,10,259],
+[0,1819,10,190],
+[0,1827,2],
+[0,1827,2,114],
+[0,1827,2],
+[0,1827,13,343],
+[0,1827,25],
+[0,1827,26,327],
+[0,1827,36],
+[0,1828,3],
+[0,1828,26],
+[0,1828,10,332],
+[0,1828,10],
+[0,1828,27,327],
+[0,1828,40],
+[0,1837,2],
+[0,1837,2,344],
+[0,1837,2],
+[0,1837,14,345],
+[0,1837,27],
+[0,1837,28,3],
+[0,1837,33],
+[0,1838,3],
+[0,1838,3],
+[0,1838,15],
+[0,1838,7,114],
+[0,1838,7],
+[0,1838,16,3],
+[0,1840,11],
+[0,1839,26],
+[0,1839,4,7],
+[0,1839,4,321],
+[0,1839,27,3],
+[0,1840,11],
+[0,1842,11],
+[0,1852,2],
+[0,1852,2,346],
+[0,1852,2],
+[0,1852,14,347],
+[0,1852,27],
+[0,1852,28,3],
+[0,1852,33],
+[0,1853,3],
+[0,1853,3],
+[0,1853,15],
+[0,1853,7,114],
+[0,1853,7],
+[0,1853,16,3],
+[0,1853,24,6],
+[0,1853,24,3],
+[0,1853,43,321],
+[0,1855,11],
+[0,1854,13],
+[0,1854,4,333],
+[0,1854,4],
+[0,1854,14,3],
+[0,1854,38],
+[0,1854,19,33],
+[0,1854,19,319],
+[0,1854,39,3],
+[0,1855,11],
+[0,1857,11],
+[0,1864,2],
+[0,1864,2,348],
+[0,1864,2],
+[0,1864,17,349],
+[0,1864,33],
+[0,1864,36],
+[0,1865,22],
+[0,1865,3,45],
+[0,1865,3,319],
+[0,1865,23,344],
+[0,1865,23],
+[0,1865,34],
+[0,1871,2],
+[0,1871,2,350],
+[0,1871,2],
+[0,1871,17,351],
+[0,1871,33],
+[0,1871,36],
+[0,1872,22],
+[0,1872,3,45],
+[0,1872,3,319],
+[0,1872,23,346],
+[0,1872,23],
+[0,1872,34],
+[0,1879,2],
+[0,1879,2,203],
+[0,1879,2],
+[0,1879,19,204],
+[0,1879,38],
+[0,1879,41],
+[0,1880,4],
+[0,1880,11,190],
+[0,1887,2],
+[0,1887,2,328],
+[0,1887,2],
+[0,1887,20,352],
+[0,1887,39],
+[0,1887,40,31],
+[0,1887,48],
+[0,1888,3],
+[0,1888,3],
+[0,1888,7,31],
+[0,1888,25,24],
+[0,1889,4,190],
+[0,1889,14,31],
+[0,1892,11],
+[0,1900,2],
+[0,1900,2,353],
+[0,1900,2],
+[0,1900,22,354],
+[0,1900,43],
+[0,1900,46],
+[0,1901,3],
+[0,1901,10,321],
+[0,1908,2],
+[0,1908,2,355],
+[0,1908,2],
+[0,1908,22,356],
+[0,1908,43],
+[0,1908,44,357],
+[0,1908,55],
+[0,1909,3],
+[0,1909,3],
+[0,1909,7,357],
+[0,1909,28,24],
+[0,1911,11],
+[0,1910,4,321],
+[0,1910,17,357],
+[0,1911,11],
+[0,1913,11],
+[0,1917,17],
+[0,1917,2,328],
+[0,1917,2],
+[0,1917,18,188],
+[0,1929,6],
+[0,1929,0,0],
+[0,1929,7],
+[0,1929,24],
+[0,1929,25],
+[0,1929,35],
+[0,1936,0,358],
+[0,1936,23],
+[0,1936,24,359],
+[0,1936,32,1],
+[0,1936,39],
+[0,1940,4,360],
+[0,1940,13,360],
+[0,1940,38],
+[0,1940,41],
+[0,1946,8],
+[0,1946,12,361],
+[0,1959,8],
+[0,1959,8,226],
+[0,1959,8],
+[0,1959,21,362],
+[0,1959,35],
+[0,1959,36,363],
+[0,1959,42],
+[0,1960,12],
+[0,1960,46],
+[0,1960,19,15],
+[0,1960,38],
+[0,1960,19,364],
+[0,1960,29],
+[0,1960,19,15],
+[0,1960,19,363],
+[0,1960,30],
+[0,1960,47],
+[0,1974,8],
+[0,1974,8,365],
+[0,1974,8],
+[0,1974,21,366],
+[0,1974,35],
+[0,1974,36,367],
+[0,1974,42],
+[0,1975,12],
+[0,1975,28],
+[0,1975,19,16],
+[0,1975,19,367],
+[0,1975,29],
+[0,1984,8],
+[0,1984,8,86],
+[0,1984,8],
+[0,1984,21,368],
+[0,1984,35],
+[0,1984,38],
+[0,1986,31],
+[0,1986,12,119],
+[0,1986,12,369],
+[0,1986,12],
+[0,1986,32],
+[0,1985,39,370],
+[0,1985,29,226],
+[0,1985,29],
+[0,1985,40,363],
+[0,1985,40,371],
+[0,1985,40,372],
+[0,1987,33],
+[0,1987,12,373],
+[0,1987,12],
+[0,1988,34],
+[0,1988,12,374],
+[0,1988,12],
+[0,1994,8],
+[0,1994,8,375],
+[0,1994,8],
+[0,1994,23,376],
+[0,1994,39],
+[0,1994,42],
+[0,1995,24],
+[0,1995,12,377],
+[0,1995,12],
+[0,1995,25,361],
+[0,1996,38],
+[0,1996,12,378],
+[0,1996,12,372],
+[0,1996,39],
+[0,1996,53,379],
+[0,1996,53],
+[0,1996,77],
+[0,2003,8],
+[0,2003,8,380],
+[0,2003,8],
+[0,2003,29,381],
+[0,2003,50],
+[0,2003,51,170],
+[0,2003,58],
+[0,2005,31],
+[0,2005,12,119],
+[0,2005,12,369],
+[0,2005,12],
+[0,2005,32],
+[0,2004,39,370],
+[0,2004,29,226],
+[0,2004,29],
+[0,2004,67],
+[0,2004,40,364],
+[0,2004,58],
+[0,2004,40,15],
+[0,2004,40,382],
+[0,2004,40,170],
+[0,2004,59],
+[0,2012,8],
+[0,2012,8,379],
+[0,2012,8],
+[0,2012,55],
+[0,2012,33,146],
+[0,2012,33,380],
+[0,2012,33],
+[0,2012,56],
+[0,2019,8],
+[0,2019,8,373],
+[0,2019,8],
+[0,2019,32,383],
+[0,2019,57],
+[0,2019,60],
+[0,2020,35],
+[0,2020,12,158],
+[0,2020,12,372],
+[0,2020,36],
+[0,2020,50,379],
+[0,2020,50],
+[0,2020,74],
+[0,2027,8],
+[0,2027,8,374],
+[0,2027,8],
+[0,2027,33,384],
+[0,2027,59],
+[0,2027,62],
+[0,2028,12],
+[0,2028,12,361],
+[0,2028,37],
+[0,2028,27,139],
+[0,2028,27],
+[0,2028,38,385],
+[0,2028,38],
+[0,2028,58],
+[0,2036,8],
+[0,2036,8,385],
+[0,2036,8],
+[0,2036,29,386],
+[0,2036,51],
+[0,2036,54],
+[0,2037,12],
+[0,2037,12,363],
+[0,2037,12,371],
+[0,2037,12,372],
+[0,2037,45],
+[0,2037,35,365],
+[0,2037,35],
+[0,2037,59],
+[0,2037,46,34],
+[0,2037,46,1],
+[0,2037,60,154],
+[0,2042,4],
+[0,2042,11,387],
+[0,2042,41],
+[0,2042,44],
+[0,2043,8],
+[0,2043,8,177],
+[0,2043,8,360],
+[0,2043,56],
+[0,2043,50,359],
+[0,2044,8],
+[0,2044,44],
+[0,2044,19,360],
],
"sources":["build/Olives.js"],
-"names":["define","Tools","getNodes","dom","query","isAcceptedType","parentNode","appendChild","createDocumentFragment","document","querySelectorAll","getDataset","i","l","dataset","split","join","hasOwnProperty","length","attributes","name","shift","getAttribute","type","HTMLElement","SVGElement","setAttribute","node","property","value","matches","parent","selector","indexOf","toArray","BindPlugin","Store","Observable","DomUtils","BindPluginConstructor","$model","$bindings","_removeObserversForId","id","_observers","forEach","handler","unwatchValue","_model","_bindings","_itemRenderers","observers","setModel","this.setModel","model","getModel","this.getModel","ItemRenderer","this.ItemRenderer","$plugins","$rootNode","_node","_plugins","_rootNode","_start","_nb","setRenderer","this.setRenderer","getRenderer","this.getRenderer","setRootNode","this.setRootNode","rootNode","renderer","querySelector","removeChild","getRootNode","this.getRootNode","setPlugins","this.setPlugins","plugins","getPlugins","this.getPlugins","items","setStart","this.setStart","start","parseInt","getStart","this.getStart","setNb","this.setNb","nb","getNb","this.getNb","addItem","this.addItem","next","getNextItem","create","insertBefore","this.getNextItem","keys","map","Object","string","Number","closest","closestGreater","closestId","removeItem","this.removeItem","item","this.create","has","newNode","cloneNode","nodes","child","apply","render","this.render","_tmpNb","getNbItems","marked","loop","idx","push","reverse","sort","compareNumbers","setItemRenderer","this.setItemRenderer","itemRenderer","getItemRenderer","this.getItemRenderer","foreach","this.foreach","idItemRenderer","watch","updateStart","this.updateStart","updateNb","this.updateNb","refresh","this.refresh","bind","this.bind","modelIdx","prop","get","getNestedProperty","extraParam","slice","arguments","execBinding","concat","hasBinding","addEventListener","update","set","watchValue","this.set","getItemIndex","this.getItemIndex","form","this.form","DOMform","nodeName","that","event","preventDefault","addBinding","this.addBinding","binding","this.execBinding","call","prototype","Array","this.hasBinding","getBinding","this.getBinding","addBindings","this.addBindings","list","EventPlugin","Utils","EventPluginConstructor","$parent","$isMobile","_parent","_map","_isMobile","this.addEventListener","callback","useCapture","listen","this.listen","listener","e","delegate","this.delegate","target","getParent","this.getParent","setParent","this.setParent","this.map","setMap","this.setMap","LocalStore","LocalStoreConstructor","_name","_localStorage","localStorage","setLocalStorage","setItem","toJSON","this.setLocalStorage","local$torage","Function","getLocalStorage","this.getLocalStorage","sync","this.sync","json","parse","JSON","getItem","LocalStoreFactory","init","Plugins","PluginsConstructor","trim","applyPlugin","phrase","plugin","couple","method","params","unshift","add","this.add","addAll","this.addAll","this.get","del","this.del","this.apply","OObject","StateMachine","OObjectConstructor","otherStore","UI","baseNode","_currentPlace","createElement","template","innerHTML","childNodes","Error","place","DOMplace","beforeNode","_stateMachine","renderNPlace","this.place","setTemplateFromDom","this.setTemplateFromDom","alive","this.alive","nextElementSibling","getCurrentPlace","this.getCurrentPlace","PlacePlugin","PlacePluginConstructor","$uis","_uis","ui","setAll","this.setAll","uis","SocketIOTransport","SocketIOTransportConstructor","$socket","_socket","setSocket","this.setSocket","socket","emit","getSocket","this.getSocket","on","this.on","func","once","this.once","this.emit","data","removeListener","this.removeListener","request","this.request","channel","scope","reqData","now","Date","floor","Math","random","eventId","boundCallback","stop","Stack","StackConstructor","_hidePlace","_childNodes","remove","this.remove","index","splice","newParentDom","childDom","_setParent","up","this.up","domPosition","getPosition","move","down","this.down","this.move","position","domIndex","nextElement","insert","this.insert","this.getPosition","count","this.count","this.has","hide","this.hide","show","this.show","hideAll","this.hideAll","showAll","this.showAll","this._setParent","getHidePlace","this.getHidePlace","setHidePlace","this.setHidePlace","hidePlace","LocationRouter","Router","LocationRouterConstructor","_watchHandle","this.parse","hash","pop","toUrl","this.toUrl","args","this.start","navigate","parsedHash","location","window","bindOnHashChange","bindOnRouteChange","destroy","this.destroy","unwatch","removeEventListener","boundOnHashChange","onHashChange","this.onHashChange","newUrl","this.bindOnHashChange","this.bindOnRouteChange","onRouteChange","this.onRouteChange","LocationRouterFactory"]
+"names":["define","Tools","getNodes","dom","query","isAcceptedType","parentNode","appendChild","createDocumentFragment","document","querySelectorAll","getDataset","i","l","dataset","split","join","hasOwnProperty","length","attributes","name","shift","getAttribute","type","HTMLElement","SVGElement","setAttribute","node","property","value","matches","parent","selector","indexOf","toArray","BindPlugin","Store","Observable","DomUtils","BindPluginConstructor","$model","$bindings","_removeObserversForId","id","_observers","forEach","handler","unwatchValue","_model","_bindings","_itemRenderers","observers","setModel","this.setModel","model","getModel","this.getModel","ItemRenderer","this.ItemRenderer","$plugins","$rootNode","_node","_plugins","_rootNode","_start","_nb","setRenderer","this.setRenderer","getRenderer","this.getRenderer","setRootNode","this.setRootNode","rootNode","renderer","querySelector","removeChild","getRootNode","this.getRootNode","setPlugins","this.setPlugins","plugins","getPlugins","this.getPlugins","items","setStart","this.setStart","start","parseInt","getStart","this.getStart","setNb","this.setNb","nb","getNb","this.getNb","addItem","this.addItem","next","getNextItem","create","insertBefore","this.getNextItem","keys","map","Object","string","Number","closest","closestGreater","closestId","removeItem","this.removeItem","item","this.create","has","newNode","cloneNode","nodes","child","apply","render","this.render","_tmpNb","getNbItems","marked","loop","idx","push","reverse","sort","compareNumbers","setItemRenderer","this.setItemRenderer","itemRenderer","getItemRenderer","this.getItemRenderer","foreach","this.foreach","idItemRenderer","watch","updateStart","this.updateStart","updateNb","this.updateNb","refresh","this.refresh","bind","this.bind","modelIdx","prop","get","getNestedProperty","extraParam","slice","arguments","execBinding","concat","hasBinding","addEventListener","update","set","watchValue","this.set","getItemIndex","this.getItemIndex","form","this.form","DOMform","nodeName","that","event","preventDefault","addBinding","this.addBinding","binding","this.execBinding","call","prototype","Array","this.hasBinding","getBinding","this.getBinding","addBindings","this.addBindings","list","EventPlugin","Utils","EventPluginConstructor","$parent","$isMobile","_parent","_map","_isMobile","this.addEventListener","callback","useCapture","listen","this.listen","listener","e","delegate","this.delegate","target","getParent","this.getParent","setParent","this.setParent","this.map","setMap","this.setMap","LocalStore","LocalStoreConstructor","_name","_localStorage","localStorage","setLocalStorage","setItem","toJSON","this.setLocalStorage","local$torage","Function","getLocalStorage","this.getLocalStorage","sync","this.sync","json","parse","JSON","getItem","LocalStoreFactory","init","Plugins","PluginsConstructor","trim","applyPlugin","phrase","plugin","couple","method","params","unshift","add","this.add","addAll","this.addAll","this.get","del","this.del","this.apply","OObject","StateMachine","OObjectConstructor","otherStore","UI","baseNode","_currentPlace","createElement","template","innerHTML","childNodes","Error","place","DOMplace","beforeNode","_stateMachine","renderNPlace","this.place","setTemplateFromDom","this.setTemplateFromDom","alive","this.alive","nextElementSibling","getCurrentPlace","this.getCurrentPlace","PlacePlugin","PlacePluginConstructor","$uis","_uis","ui","setAll","this.setAll","uis","SocketIOTransport","SocketIOTransportConstructor","$socket","_socket","setSocket","this.setSocket","socket","emit","getSocket","this.getSocket","on","this.on","func","once","this.once","this.emit","data","removeListener","this.removeListener","request","this.request","channel","scope","reqData","now","Date","floor","Math","random","eventId","boundCallback","stop","Stack","require","StackConstructor","getNextElementInDom","position","_childNodes","nextElement","_hidePlace","remove","this.remove","index","splice","newParentDom","childDom","_setParent","up","this.up","domPosition","getPosition","move","down","this.down","this.move","domIndex","insert","this.insert","this.getPosition","count","this.count","this.has","hide","this.hide","show","this.show","hideAll","this.hideAll","showAll","this.showAll","this._setParent","getHidePlace","this.getHidePlace","setHidePlace","this.setHidePlace","hidePlace","LocationRouter","Router","LocationRouterConstructor","_watchHandle","this.parse","hash","pop","toUrl","this.toUrl","args","this.start","navigate","parsedHash","location","window","bindOnHashChange","bindOnRouteChange","destroy","this.destroy","unwatch","removeEventListener","boundOnHashChange","onHashChange","this.onHashChange","newUrl","this.bindOnHashChange","this.bindOnRouteChange","onRouteChange","this.onRouteChange","LocationRouterFactory"]
}
View
26 build/Olives.js
@@ -1633,7 +1633,7 @@ function SocketIOTransport(Observable, Tools) {
* Copyright (c) 2012-2013 Olivier Scherrer <pode.fr@gmail.com> - Olivier Wietrich <olivier.wietrich@gmail.com>
*/
-define('Stack',[],
+define('Stack',['Tools'],
/**
* @class
@@ -1646,6 +1646,8 @@ function Stack() {
+ var Tools = require("Tools");
+
return function StackConstructor($parent) {
/**
@@ -1658,7 +1660,7 @@ function Stack() {
* The place where the dom elements hide
* @private
*/
- _hidePlace = document.createDocumentFragment(),
+ _hidePlace = document.createElement("div"),
/**
* The list of dom elements that are part of the stack
@@ -1725,7 +1727,7 @@ function Stack() {
this.up = function up(dom) {
if (this.has(dom)) {
var domPosition = this.getPosition(dom);
- this.move(dom, domPosition + 2);
+ this.move(dom, domPosition + 1);
return dom;
} else {
return false;
@@ -1757,21 +1759,33 @@ function Stack() {
if (this.has(dom)) {
var domIndex = _childNodes.indexOf(dom);
_childNodes.splice(domIndex, 1);
- _childNodes.splice(position, 0, dom);
// Preventing a bug in IE when insertBefore is not given a valid
// second argument
- var nextElement = _childNodes[position +1];
+ var nextElement = getNextElementInDom(position);
if (nextElement) {
_parent.insertBefore(dom, nextElement);
} else {
_parent.appendChild(dom);
}
+ _childNodes.splice(position, 0, dom);
return dom;
} else {
return false;
}
};
+ function getNextElementInDom(position) {
+ if (position >= _childNodes.length) {
+ return;
+ }
+ var nextElement = _childNodes[position];
+ if (Tools.toArray(_parent.childNodes).indexOf(nextElement) == -1) {
+ return getNextElementInDom(position +1);
+ } else {
+ return nextElement;
+ }
+ }
+
/**
* Insert a new element at a specific position in the stack
* @param {HTMLElement} dom the dom element to insert
@@ -2011,7 +2025,7 @@ function LocationRouter(Router, Tools) {
* @private
*/
this.bindOnRouteChange = function bindOnRouteChange() {
- _watchHandle = this.watch("route", this.onRouteChange, this);
+ _watchHandle = this.watch(this.onRouteChange, this);
};
/**
View
56 build/Olives.min.js
@@ -3,31 +3,31 @@
The MIT License (MIT)
Copyright (c) 2012-2013 Olivier Scherrer <pode.fr@gmail.com> - Olivier Wietrich <olivier.wietrich@gmail.com>
*/
-define("DomUtils",["Tools"],function(g){return{getNodes:function(c,e){return this.isAcceptedType(c)?(c.parentNode||document.createDocumentFragment().appendChild(c),c.parentNode.querySelectorAll(e||"*")):false},getDataset:function(c){var e=0,b,a={},d,f;if(this.isAcceptedType(c))if(c.hasOwnProperty("dataset"))return c.dataset;else{for(b=c.attributes.length;e<b;e++)d=c.attributes[e].name.split("-"),d.shift()=="data"&&(a[f=d.join("-")]=c.getAttribute("data-"+f));return a}else return false},isAcceptedType:function(c){return c instanceof
-HTMLElement||c instanceof SVGElement?true:false},setAttribute:function(c,e,b){return c instanceof HTMLElement?(c[e]=b,true):c instanceof SVGElement?(c.setAttribute(e,b),true):false},matches:function(c,e,b){return g.toArray(this.getNodes(c,e)).indexOf(b)>-1}}});
-define("Bind.plugin",["Store","Observable","Tools","DomUtils"],function(g,c,e,b){return function(a,c){function f(a){i[a]&&(i[a].forEach(function(a){j.unwatchValue(a)}),delete i[a])}var j=null,h={},k={},i={};this.observers=i;this.setModel=function(a){return a instanceof g?(j=a,true):false};this.getModel=function(){return j};this.ItemRenderer=function(a,c){var d=null,i=null,h=null,g=null,k=null;this.setRenderer=function(a){d=a;return true};this.getRenderer=function(){return d};this.setRootNode=function(a){return b.isAcceptedType(a)?
-(h=a,a=h.querySelector("*"),this.setRenderer(a),a&&h.removeChild(a),true):false};this.getRootNode=function(){return h};this.setPlugins=function(a){i=a;return true};this.getPlugins=function(){return i};this.items={};this.setStart=function(a){return g=parseInt(a,10)};this.getStart=function(){return g};this.setNb=function(a){return k=a=="*"?a:parseInt(a,10)};this.getNb=function(){return k};this.addItem=function(a){var b;return typeof a=="number"&&!this.items[a]?(b=this.getNextItem(a),(a=this.create(a))?
-(b?h.insertBefore(a,b):h.appendChild(a),true):false):false};this.getNextItem=function(a){var b=Object.keys(this.items).map(function(a){return Number(a)}),f=e.closestGreater(a,b),b=b[f];if(b!=a)return this.items[b]};this.removeItem=function(a){var b=this.items[a];return b?(h.removeChild(b),delete this.items[a],f(a),true):false};this.create=function(a){if(j.has(a)){var f=d.cloneNode(true),l=b.getNodes(f);e.toArray(l).forEach(function(b){b.setAttribute("data-"+i.name+"_id",a)});this.items[a]=f;i.apply(f);
-return f}};this.render=function(){var a=k=="*"?j.getNbItems():k,b=[];if(k!==null&&g!==null){e.loop(this.items,function(f,l){l=Number(l);(l<g||l>=g+a||!j.has(l))&&b.push(l)},this);b.sort(e.compareNumbers).reverse().forEach(this.removeItem,this);for(var f=g,l=a+g;f<l;f++)this.addItem(f);return true}else return false};this.setPlugins(a);this.setRootNode(c)};this.setItemRenderer=function(a,b){k[a||"default"]=b};this.getItemRenderer=function(a){return k[a]};this.foreach=function(a,b,c,e){var d=new this.ItemRenderer(this.plugins,
-a);d.setStart(c||0);d.setNb(e||"*");d.render();j.watch("added",d.render,d);j.watch("deleted",function(a){d.render();f(a)},this);this.setItemRenderer(b,d)};this.updateStart=function(a,b){var f=this.getItemRenderer(a);return f?(f.setStart(b),true):false};this.updateNb=function(a,b){var f=this.getItemRenderer(a);return f?(f.setNb(b),true):false};this.refresh=function(a){return(a=this.getItemRenderer(a))?(a.render(),true):false};this.bind=function(a,f,c){var c=c||"",d=a.getAttribute("data-"+this.plugins.name+
-"_id"),i=c.split("."),h=d||i.shift(),g=d?c:i.join("."),d=e.getNestedProperty(j.get(h),g),k=e.toArray(arguments).slice(3);if(d||d===0||d===false)this.execBinding.apply(this,[a,f,d].concat(k))||b.setAttribute(a,f,d);this.hasBinding(f)||a.addEventListener("change",function(){j.has(h)&&(g?j.update(h,c,a[f]):j.set(h,a[f]))},true);this.observers[h]=this.observers[h]||[];this.observers[h].push(j.watchValue(h,function(c){this.execBinding.apply(this,[a,f,e.getNestedProperty(c,g)].concat(k))||b.setAttribute(a,
-f,e.getNestedProperty(c,g))},this))};this.set=function(a){return b.isAcceptedType(a)&&a.name?(j.set(a.name,a.value),true):false};this.getItemIndex=function(a){return(a=b.getDataset(a))&&typeof a[this.plugins.name+"_id"]!="undefined"?+a[this.plugins.name+"_id"]:false};this.form=function(a){if(a&&a.nodeName=="FORM"){var b=this;a.addEventListener("submit",function(f){e.toArray(a.querySelectorAll("[name]")).forEach(b.set,b);f.preventDefault()},true);return true}else return false};this.addBinding=function(a,
-b){return a&&typeof a=="string"&&typeof b=="function"?(h[a]=b,true):false};this.execBinding=function(a,b){return this.hasBinding(b)?(h[b].apply(a,Array.prototype.slice.call(arguments,2)),true):false};this.hasBinding=function(a){return h.hasOwnProperty(a)};this.getBinding=function(a){return h[a]};this.addBindings=function(a){return e.loop(a,function(a,b){this.addBinding(b,a)},this)};this.setModel(a);this.addBindings(c)}});
-define("Event.plugin",["DomUtils"],function(g){return function(c,e){var b=null,a={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},d=!!e;this.addEventListener=function(a,b,c,d){a.addEventListener(this.map(b),c,!!d)};this.listen=function(a,c,d,e){this.addEventListener(a,c,function(c){b[d].call(b,c,a)},!!e)};this.delegate=function(a,c,d,e,i){this.addEventListener(a,d,function(d){g.matches(a,c,d.target)&&b[e].call(b,d,a)},!!i)};this.getParent=function(){return b};this.setParent=function(a){return a instanceof
-Object?(b=a,true):false};this.map=function(b){return d?a[b]||b:b};this.setMap=function(b,c){return typeof b=="string"&&typeof c=="string"?(a[b]=c,true):false};this.setParent(c)}});
-define("LocalStore",["Store","Tools"],function(g,c){function e(){var b=null,a=localStorage,d=function(){a.setItem(b,this.toJSON())};this.setLocalStorage=function(b){return b&&b.setItem instanceof Function?(a=b,true):false};this.getLocalStorage=function(){return a};this.sync=function(f){return typeof f=="string"?(b=f,f=JSON.parse(a.getItem(f)),c.loop(f,function(a,b){this.has(b)||this.set(b,a)},this),d.call(this),this.watch("added",d,this),this.watch("updated",d,this),this.watch("deleted",d,this),true):
-false}}return function(b){e.prototype=new g(b);return new e}});
-define("Plugins",["Tools","DomUtils"],function(g,c){return function(e){var b={},a=function(a){return a.trim()},d=function(c,d,e){d.split(";").forEach(function(d){var i=d.split(":"),d=i[0].trim(),i=i[1]?i[1].split(",").map(a):[];i.unshift(c);b[e]&&b[e][d]&&b[e][d].apply(b[e],i)})};this.add=function(a,c){var d=this;return typeof a=="string"&&typeof c=="object"&&c?(b[a]=c,c.plugins={name:a,apply:function(){return d.apply.apply(d,arguments)}},true):false};this.addAll=function(a){return g.loop(a,function(a,
-b){this.add(b,a)},this)};this.get=function(a){return b[a]};this.del=function(a){return delete b[a]};this.apply=function(a){var b;return c.isAcceptedType(a)?(b=c.getNodes(a),g.loop(g.toArray(b),function(a){g.loop(c.getDataset(a),function(b,c){d(a,b,c)})}),a):false};this.addAll(e)}});
-define("OObject",["StateMachine","Store","Plugins","DomUtils","Tools"],function(g,c,e,b,a){return function(d){var f=function(a){var c=h||document.createElement("div");if(a.template){typeof a.template=="string"?c.innerHTML=a.template.trim():b.isAcceptedType(a.template)&&c.appendChild(a.template);if(c.childNodes.length>1)throw Error("UI.template should have only one parent node");else a.dom=c.childNodes[0];a.plugins.apply(a.dom)}else throw Error("UI.template must be set prior to render");},j=function(a,
-b,c){b&&(c?b.insertBefore(a.dom,c):b.appendChild(a.dom),h=b)},h=null,k=new g("Init",{Init:[["render",f,this,"Rendered"],["place",function(b,c){f(b);j.apply(null,a.toArray(arguments))},this,"Rendered"]],Rendered:[["place",j,this],["render",f,this]]});this.model=d instanceof c?d:new c;this.plugins=new e;this.dom=this.template=null;this.place=function(a,b){k.event("place",this,a,b)};this.render=function(){k.event("render",this)};this.setTemplateFromDom=function(a){return b.isAcceptedType(a)?(this.template=
-a,true):false};this.alive=function(a){return b.isAcceptedType(a)?(this.setTemplateFromDom(a),this.place(a.parentNode,a.nextElementSibling),true):false};this.getCurrentPlace=function(){return h}}});
-define("Place.plugin",["OObject","Tools"],function(g,c){return function(e){var b={};this.place=function(a,c){if(b[c]instanceof g)b[c].place(a);else throw Error(c+" is not an OObject UI in place:"+c);};this.set=function(a,c){return typeof a=="string"&&c instanceof g?(b[a]=c,true):false};this.setAll=function(a){c.loop(a,function(a,b){this.set(b,a)},this)};this.get=function(a){return b[a]};this.setAll(e)}});
-define("SocketIOTransport",["Observable","Tools"],function(){return function(g){var c=null;this.setSocket=function(e){return e&&typeof e.emit=="function"?(c=e,true):false};this.getSocket=function(){return c};this.on=function(e,b){return c.on(e,b)};this.once=function(e,b){return c.once(e,b)};this.emit=function(e,b,a){return c.emit(e,b,a)};this.removeListener=function(e,b,a){return c.removeListener(e,b,a)};this.request=function(c,b,a,d){return typeof c=="string"&&typeof b!="undefined"?(b={eventId:Date.now()+
-Math.floor(Math.random()*1E6),data:b},this.once(b.eventId,function(){a&&a.apply(d||null,arguments)}),this.emit(c,b),true):false};this.listen=function(c,b,a,d){if(typeof c=="string"&&typeof b!="undefined"&&typeof a=="function"){var f={eventId:Date.now()+Math.floor(Math.random()*1E6),data:b,keepAlive:true},g=function(){a&&a.apply(d||null,arguments)},h=this;this.on(f.eventId,g);this.emit(c,f);return function(){h.emit("disconnect-"+f.eventId);h.removeListener(f.eventId,g)}}else return false};this.setSocket(g)}});
-define("Stack",[],function(){return function(g){var c=document.createDocumentFragment(),e=document.createDocumentFragment(),b=[];this.add=function(a){return!this.has(a)&&a instanceof HTMLElement?(c.appendChild(a),b.push(a),a):false};this.remove=function(a){var d;return this.has(a)?(d=b.indexOf(a),c.removeChild(a),b.splice(d,1),a):false};this.place=function(a){return a instanceof HTMLElement?([].slice.call(c.childNodes).forEach(function(b){this.has(b)&&a.appendChild(b)},this),this._setParent(a)):false};
-this.up=function(a){if(this.has(a)){var b=this.getPosition(a);this.move(a,b+2);return a}else return false};this.down=function(a){if(this.has(a)){var b=this.getPosition(a);this.move(a,b-1);return a}else return false};this.move=function(a,d){if(this.has(a)){var e=b.indexOf(a);b.splice(e,1);b.splice(d,0,a);(e=b[d+1])?c.insertBefore(a,e):c.appendChild(a);return a}else return false};this.insert=function(a,d){return!this.has(a)&&a instanceof HTMLElement?(b.splice(d,0,a),c.insertBefore(a,c.childNodes[d]),
-a):false};this.getPosition=function(a){return b.indexOf(a)};this.count=function(){return c.childNodes.length};this.has=function(a){return this.getPosition(a)>=0};this.hide=function(a){return this.has(a)?(e.appendChild(a),true):false};this.show=function(a){return this.has(a)&&a.parentNode===e?(this.move(a,b.indexOf(a)),true):false};this.hideAll=function(){b.forEach(this.hide,this)};this.showAll=function(){b.forEach(this.show,this)};this.getParent=function(){return c};this._setParent=function(a){return a instanceof
-HTMLElement?c=a:false};this.getHidePlace=function(){return e};this.setHidePlace=function(a){return a instanceof HTMLElement?(e=a,true):false};this._setParent(g)}});
-define("LocationRouter",["Router","Tools"],function(g,c){function e(){var b;this.parse=function(a){return a.split("#").pop().split("/")};this.toUrl=function(a){return a.join("/")};this.start=function(){this.navigate.apply(this,this.parse(window.location.hash));this.bindOnHashChange();this.bindOnRouteChange()};this.destroy=function(){this.unwatch(b);window.removeEventListener("hashchange",this.boundOnHashChange,true)};this.onHashChange=function(a){this.navigate.apply(this,this.parse(a.newUrl.split("#").pop()))};
-this.boundOnHashChange=this.onHashChange.bind(this);this.bindOnHashChange=function(){window.addEventListener("hashchange",this.boundOnHashChange,true)};this.bindOnRouteChange=function(){b=this.watch("route",this.onRouteChange,this)};this.onRouteChange=function(){window.location.hash=this.toUrl(c.toArray(arguments))}}return function(){e.prototype=new g;return new e}});
+define("DomUtils",["Tools"],function(g){return{getNodes:function(d,c){return this.isAcceptedType(d)?(d.parentNode||document.createDocumentFragment().appendChild(d),d.parentNode.querySelectorAll(c||"*")):false},getDataset:function(d){var c=0,b,e={},f,a;if(this.isAcceptedType(d))if(d.hasOwnProperty("dataset"))return d.dataset;else{for(b=d.attributes.length;c<b;c++)f=d.attributes[c].name.split("-"),f.shift()=="data"&&(e[a=f.join("-")]=d.getAttribute("data-"+a));return e}else return false},isAcceptedType:function(d){return d instanceof
+HTMLElement||d instanceof SVGElement?true:false},setAttribute:function(d,c,b){return d instanceof HTMLElement?(d[c]=b,true):d instanceof SVGElement?(d.setAttribute(c,b),true):false},matches:function(d,c,b){return g.toArray(this.getNodes(d,c)).indexOf(b)>-1}}});
+define("Bind.plugin",["Store","Observable","Tools","DomUtils"],function(g,d,c,b){return function(e,d){function a(a){h[a]&&(h[a].forEach(function(a){j.unwatchValue(a)}),delete h[a])}var j=null,i={},l={},h={};this.observers=h;this.setModel=function(a){return a instanceof g?(j=a,true):false};this.getModel=function(){return j};this.ItemRenderer=function(k,d){var e=null,f=null,h=null,i=null,g=null;this.setRenderer=function(a){e=a;return true};this.getRenderer=function(){return e};this.setRootNode=function(a){return b.isAcceptedType(a)?
+(h=a,a=h.querySelector("*"),this.setRenderer(a),a&&h.removeChild(a),true):false};this.getRootNode=function(){return h};this.setPlugins=function(a){f=a;return true};this.getPlugins=function(){return f};this.items={};this.setStart=function(a){return i=parseInt(a,10)};this.getStart=function(){return i};this.setNb=function(a){return g=a=="*"?a:parseInt(a,10)};this.getNb=function(){return g};this.addItem=function(a){var b;return typeof a=="number"&&!this.items[a]?(b=this.getNextItem(a),(a=this.create(a))?
+(b?h.insertBefore(a,b):h.appendChild(a),true):false):false};this.getNextItem=function(a){var b=Object.keys(this.items).map(function(a){return Number(a)}),k=c.closestGreater(a,b),b=b[k];if(b!=a)return this.items[b]};this.removeItem=function(b){var k=this.items[b];return k?(h.removeChild(k),delete this.items[b],a(b),true):false};this.create=function(a){if(j.has(a)){var k=e.cloneNode(true),d=b.getNodes(k);c.toArray(d).forEach(function(b){b.setAttribute("data-"+f.name+"_id",a)});this.items[a]=k;f.apply(k);
+return k}};this.render=function(){var a=g=="*"?j.getNbItems():g,b=[];if(g!==null&&i!==null){c.loop(this.items,function(k,c){c=Number(c);(c<i||c>=i+a||!j.has(c))&&b.push(c)},this);b.sort(c.compareNumbers).reverse().forEach(this.removeItem,this);for(var k=i,d=a+i;k<d;k++)this.addItem(k);return true}else return false};this.setPlugins(k);this.setRootNode(d)};this.setItemRenderer=function(a,b){l[a||"default"]=b};this.getItemRenderer=function(a){return l[a]};this.foreach=function(b,c,d,e){var h=new this.ItemRenderer(this.plugins,
+b);h.setStart(d||0);h.setNb(e||"*");h.render();j.watch("added",h.render,h);j.watch("deleted",function(b){h.render();a(b)},this);this.setItemRenderer(c,h)};this.updateStart=function(a,b){var c=this.getItemRenderer(a);return c?(c.setStart(b),true):false};this.updateNb=function(a,b){var c=this.getItemRenderer(a);return c?(c.setNb(b),true):false};this.refresh=function(a){return(a=this.getItemRenderer(a))?(a.render(),true):false};this.bind=function(a,h,d){var d=d||"",e=a.getAttribute("data-"+this.plugins.name+
+"_id"),f=d.split("."),i=e||f.shift(),g=e?d:f.join("."),e=c.getNestedProperty(j.get(i),g),l=c.toArray(arguments).slice(3);if(e||e===0||e===false)this.execBinding.apply(this,[a,h,e].concat(l))||b.setAttribute(a,h,e);this.hasBinding(h)||a.addEventListener("change",function(){j.has(i)&&(g?j.update(i,d,a[h]):j.set(i,a[h]))},true);this.observers[i]=this.observers[i]||[];this.observers[i].push(j.watchValue(i,function(d){this.execBinding.apply(this,[a,h,c.getNestedProperty(d,g)].concat(l))||b.setAttribute(a,
+h,c.getNestedProperty(d,g))},this))};this.set=function(a){return b.isAcceptedType(a)&&a.name?(j.set(a.name,a.value),true):false};this.getItemIndex=function(a){return(a=b.getDataset(a))&&typeof a[this.plugins.name+"_id"]!="undefined"?+a[this.plugins.name+"_id"]:false};this.form=function(a){if(a&&a.nodeName=="FORM"){var b=this;a.addEventListener("submit",function(d){c.toArray(a.querySelectorAll("[name]")).forEach(b.set,b);d.preventDefault()},true);return true}else return false};this.addBinding=function(a,
+b){return a&&typeof a=="string"&&typeof b=="function"?(i[a]=b,true):false};this.execBinding=function(a,b){return this.hasBinding(b)?(i[b].apply(a,Array.prototype.slice.call(arguments,2)),true):false};this.hasBinding=function(a){return i.hasOwnProperty(a)};this.getBinding=function(a){return i[a]};this.addBindings=function(a){return c.loop(a,function(a,b){this.addBinding(b,a)},this)};this.setModel(e);this.addBindings(d)}});
+define("Event.plugin",["DomUtils"],function(g){return function(d,c){var b=null,e={mousedown:"touchstart",mouseup:"touchend",mousemove:"touchmove"},f=!!c;this.addEventListener=function(a,b,c,d){a.addEventListener(this.map(b),c,!!d)};this.listen=function(a,c,d,e){this.addEventListener(a,c,function(c){b[d].call(b,c,a)},!!e)};this.delegate=function(a,c,d,e,h){this.addEventListener(a,d,function(d){g.matches(a,c,d.target)&&b[e].call(b,d,a)},!!h)};this.getParent=function(){return b};this.setParent=function(a){return a instanceof
+Object?(b=a,true):false};this.map=function(a){return f?e[a]||a:a};this.setMap=function(a,b){return typeof a=="string"&&typeof b=="string"?(e[a]=b,true):false};this.setParent(d)}});
+define("LocalStore",["Store","Tools"],function(g,d){function c(){var b=null,c=localStorage,f=function(){c.setItem(b,this.toJSON())};this.setLocalStorage=function(a){return a&&a.setItem instanceof Function?(c=a,true):false};this.getLocalStorage=function(){return c};this.sync=function(a){return typeof a=="string"?(b=a,a=JSON.parse(c.getItem(a)),d.loop(a,function(a,b){this.has(b)||this.set(b,a)},this),f.call(this),this.watch("added",f,this),this.watch("updated",f,this),this.watch("deleted",f,this),true):
+false}}return function(b){c.prototype=new g(b);return new c}});
+define("Plugins",["Tools","DomUtils"],function(g,d){return function(c){var b={},e=function(a){return a.trim()},f=function(a,c,d){c.split(";").forEach(function(c){var h=c.split(":"),c=h[0].trim(),h=h[1]?h[1].split(",").map(e):[];h.unshift(a);b[d]&&b[d][c]&&b[d][c].apply(b[d],h)})};this.add=function(a,c){var d=this;return typeof a=="string"&&typeof c=="object"&&c?(b[a]=c,c.plugins={name:a,apply:function(){return d.apply.apply(d,arguments)}},true):false};this.addAll=function(a){return g.loop(a,function(a,
+b){this.add(b,a)},this)};this.get=function(a){return b[a]};this.del=function(a){return delete b[a]};this.apply=function(a){var b;return d.isAcceptedType(a)?(b=d.getNodes(a),g.loop(g.toArray(b),function(a){g.loop(d.getDataset(a),function(b,c){f(a,b,c)})}),a):false};this.addAll(c)}});
+define("OObject",["StateMachine","Store","Plugins","DomUtils","Tools"],function(g,d,c,b,e){return function(f){var a=function(a){var c=i||document.createElement("div");if(a.template){typeof a.template=="string"?c.innerHTML=a.template.trim():b.isAcceptedType(a.template)&&c.appendChild(a.template);if(c.childNodes.length>1)throw Error("UI.template should have only one parent node");else a.dom=c.childNodes[0];a.plugins.apply(a.dom)}else throw Error("UI.template must be set prior to render");},j=function(a,
+b,c){b&&(c?b.insertBefore(a.dom,c):b.appendChild(a.dom),i=b)},i=null,l=new g("Init",{Init:[["render",a,this,"Rendered"],["place",function(b,c){a(b);j.apply(null,e.toArray(arguments))},this,"Rendered"]],Rendered:[["place",j,this],["render",a,this]]});this.model=f instanceof d?f:new d;this.plugins=new c;this.dom=this.template=null;this.place=function(a,b){l.event("place",this,a,b)};this.render=function(){l.event("render",this)};this.setTemplateFromDom=function(a){return b.isAcceptedType(a)?(this.template=
+a,true):false};this.alive=function(a){return b.isAcceptedType(a)?(this.setTemplateFromDom(a),this.place(a.parentNode,a.nextElementSibling),true):false};this.getCurrentPlace=function(){return i}}});
+define("Place.plugin",["OObject","Tools"],function(g,d){return function(c){var b={};this.place=function(c,d){if(b[d]instanceof g)b[d].place(c);else throw Error(d+" is not an OObject UI in place:"+d);};this.set=function(c,d){return typeof c=="string"&&d instanceof g?(b[c]=d,true):false};this.setAll=function(b){d.loop(b,function(b,a){this.set(a,b)},this)};this.get=function(c){return b[c]};this.setAll(c)}});
+define("SocketIOTransport",["Observable","Tools"],function(){return function(g){var d=null;this.setSocket=function(c){return c&&typeof c.emit=="function"?(d=c,true):false};this.getSocket=function(){return d};this.on=function(c,b){return d.on(c,b)};this.once=function(c,b){return d.once(c,b)};this.emit=function(c,b,e){return d.emit(c,b,e)};this.removeListener=function(c,b,e){return d.removeListener(c,b,e)};this.request=function(c,b,d,f){return typeof c=="string"&&typeof b!="undefined"?(b={eventId:Date.now()+
+Math.floor(Math.random()*1E6),data:b},this.once(b.eventId,function(){d&&d.apply(f||null,arguments)}),this.emit(c,b),true):false};this.listen=function(c,b,d,f){if(typeof c=="string"&&typeof b!="undefined"&&typeof d=="function"){var a={eventId:Date.now()+Math.floor(Math.random()*1E6),data:b,keepAlive:true},j=function(){d&&d.apply(f||null,arguments)},g=this;this.on(a.eventId,j);this.emit(c,a);return function(){g.emit("disconnect-"+a.eventId);g.removeListener(a.eventId,j)}}else return false};this.setSocket(g)}});
+define("Stack",["Tools"],function(){var g=require("Tools");return function(d){function c(a){if(!(a>=f.length)){var d=f[a];return g.toArray(b.childNodes).indexOf(d)==-1?c(a+1):d}}var b=document.createDocumentFragment(),e=document.createElement("div"),f=[];this.add=function(a){return!this.has(a)&&a instanceof HTMLElement?(b.appendChild(a),f.push(a),a):false};this.remove=function(a){var c;return this.has(a)?(c=f.indexOf(a),b.removeChild(a),f.splice(c,1),a):false};this.place=function(a){return a instanceof
+HTMLElement?([].slice.call(b.childNodes).forEach(function(b){this.has(b)&&a.appendChild(b)},this),this._setParent(a)):false};this.up=function(a){if(this.has(a)){var b=this.getPosition(a);this.move(a,b+1);return a}else return false};this.down=function(a){if(this.has(a)){var b=this.getPosition(a);this.move(a,b-1);return a}else return false};this.move=function(a,d){if(this.has(a)){var e=f.indexOf(a);f.splice(e,1);(e=c(d))?b.insertBefore(a,e):b.appendChild(a);f.splice(d,0,a);return a}else return false};
+this.insert=function(a,c){return!this.has(a)&&a instanceof HTMLElement?(f.splice(c,0,a),b.insertBefore(a,b.childNodes[c]),a):false};this.getPosition=function(a){return f.indexOf(a)};this.count=function(){return b.childNodes.length};this.has=function(a){return this.getPosition(a)>=0};this.hide=function(a){return this.has(a)?(e.appendChild(a),true):false};this.show=function(a){return this.has(a)&&a.parentNode===e?(this.move(a,f.indexOf(a)),true):false};this.hideAll=function(){f.forEach(this.hide,this)};
+this.showAll=function(){f.forEach(this.show,this)};this.getParent=function(){return b};this._setParent=function(a){return a instanceof HTMLElement?b=a:false};this.getHidePlace=function(){return e};this.setHidePlace=function(a){return a instanceof HTMLElement?(e=a,true):false};this._setParent(d)}});
+define("LocationRouter",["Router","Tools"],function(g,d){function c(){var b;this.parse=function(b){return b.split("#").pop().split("/")};this.toUrl=function(b){return b.join("/")};this.start=function(){this.navigate.apply(this,this.parse(window.location.hash));this.bindOnHashChange();this.bindOnRouteChange()};this.destroy=function(){this.unwatch(b);window.removeEventListener("hashchange",this.boundOnHashChange,true)};this.onHashChange=function(b){this.navigate.apply(this,this.parse(b.newUrl.split("#").pop()))};
+this.boundOnHashChange=this.onHashChange.bind(this);this.bindOnHashChange=function(){window.addEventListener("hashchange",this.boundOnHashChange,true)};this.bindOnRouteChange=function(){b=this.watch(this.onRouteChange,this)};this.onRouteChange=function(){window.location.hash=this.toUrl(d.toArray(arguments))}}return function(){c.prototype=new g;return new c}});
View
2 build/src/LocationRouter.js
@@ -103,7 +103,7 @@ function LocationRouter(Router, Tools) {
* @private
*/
this.bindOnRouteChange = function bindOnRouteChange() {
- _watchHandle = this.watch("route", this.onRouteChange, this);
+ _watchHandle = this.watch(this.onRouteChange, this);
};
/**
View
22 build/src/Stack.js
@@ -17,6 +17,8 @@ function Stack() {
"use strict";
+ var Tools = require("Tools");
+
return function StackConstructor($parent) {
/**
@@ -29,7 +31,7 @@ function Stack() {
* The place where the dom elements hide
* @private
*/
- _hidePlace = document.createDocumentFragment(),
+ _hidePlace = document.createElement("div"),
/**
* The list of dom elements that are part of the stack
@@ -96,7 +98,7 @@ function Stack() {
this.up = function up(dom) {
if (this.has(dom)) {
var domPosition = this.getPosition(dom);
- this.move(dom, domPosition + 2);
+ this.move(dom, domPosition + 1);
return dom;
} else {
return false;
@@ -128,21 +130,33 @@ function Stack() {
if (this.has(dom)) {
var domIndex = _childNodes.indexOf(dom);
_childNodes.splice(domIndex, 1);
- _childNodes.splice(position, 0, dom);
// Preventing a bug in IE when insertBefore is not given a valid
// second argument
- var nextElement = _childNodes[position +1];
+ var nextElement = getNextElementInDom(position);
if (nextElement) {
_parent.insertBefore(dom, nextElement);
} else {
_parent.appendChild(dom);
}
+ _childNodes.splice(position, 0, dom);
return dom;
} else {
return false;
}
};
+ function getNextElementInDom(position) {
+ if (position >= _childNodes.length) {
+ return;
+ }
+ var nextElement = _childNodes[position];
+ if (Tools.toArray(_parent.childNodes).indexOf(nextElement) == -1) {
+ return getNextElementInDom(position +1);
+ } else {
+ return nextElement;
+ }
+ }
+
/**
* Insert a new element at a specific position in the stack
* @param {HTMLElement} dom the dom element to insert

0 comments on commit 401ee7f

Please sign in to comment.
Something went wrong with that request. Please try again.