balupton/history.js — Issue #128: State does not get pushed when URL is the same as window.location
Author: Axsuul
Created: 2011-11-22 09:54:05+00:00
State: open

I'm having a problem with the `window.popstate` event not getting triggered if pushing OR replacing the state has the URL being the same as the window's. For example, if the current URL in the browser window is `http://example.com/foobar`, then
```
History.pushState(null, "foobar title", "/foobar");
History.replaceState(null, "foobar title", "/foobar");
```
will not trigger
```
$(window).bind('statechange', function() {
console.log("I do not get triggered!");
});
```