Commit 4a98ed8
authored
π amp-story: Remove duplicate replaceState on navigation (ampproject#26624)
* throttle replaceState and get rid of page_id usage
* fix test
* move throttle to amp-story
* apply throttle to all replace
* use history buffer
* make caller provide own throttle
* clear settimeout after each test
* Revert "make caller provide own throttle"
This reverts commit 7213df4.
* remove throttle1 parent 19cedca commit 4a98ed8
File tree
3 files changed
+8
-26
lines changed- extensions/amp-story/1.0
- test
3 files changed
+8
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | 741 | | |
746 | 742 | | |
747 | 743 | | |
| |||
1068 | 1064 | | |
1069 | 1065 | | |
1070 | 1066 | | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | 1067 | | |
1077 | 1068 | | |
1078 | 1069 | | |
1079 | 1070 | | |
1080 | 1071 | | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1081 | 1078 | | |
1082 | 1079 | | |
1083 | 1080 | | |
| |||
1682 | 1679 | | |
1683 | 1680 | | |
1684 | 1681 | | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | | - | |
1693 | | - | |
1694 | | - | |
1695 | | - | |
1696 | | - | |
1697 | | - | |
1698 | | - | |
1699 | 1682 | | |
1700 | 1683 | | |
1701 | 1684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
| |||
0 commit comments