HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
This change sets the "lastScroll" property to each urlHistory item ob…
…ject, allowing us to remember previous scroll distances when returning to a page that has since been removed from the DOM. Before this change, this number was stored in data on the page element, so it is lost when the page is removed after pagehide. Also, this change removes a reference in memory that we were keeping to the $activeClickedLink on each page. We stored this in attempt to refocus a link after returning to a page. Unfortunately, it doesn't seem that this data can be retained after pages are removed from the DOM, outside of somehow remembering a unique selector string to reach that element again (which could be achieved by adding some overhead, ala http://stackoverflow.com/questions/2068272/getting-a-jquery-selector-for-an-element )
- Loading branch information...
1 parent df8d6fa commit ac67e92cbbd510c31c2e1369a881f132b13bdf56 scottjehl committed
Showing with 15 additions and 21 deletions.