sproutcore/sproutcore — Issue #719: SC.routes popState() handler invokes window.history.pushState()
Author: wemrysi
Created: 2012-02-22 18:17:29+00:00
State: open

In the current implementation of SC.routes, when the `popState()` handler is called it uses `this.set('location', ...)` internally which causes the state/location at the top of the history stack to be pushed onto the stack again. i.e.

```
History = []
GO A
History = [A]
GO B
History = [A,B]
BACK --> popState()
History = [A,A]
```

the same thing happens in `hashChange()` but since it just updates the location hash in that case, the effect is innocuous.