add `replaceHash()` method #35

millermedeiros opened this Issue Sep 20, 2011 · 0 comments


None yet
1 participant

millermedeiros commented Sep 20, 2011

just a proxy to document.location.replace() which accepts paths fragments, it will change hash value without keeping old value in the history record...

how to do it right now: document.location.replace('#/foo/bar')

proposed change: hasher.replaceHash('foo', 'bar') and hasher.replaceHash('foo/bar')

PS: add unit tests (not sure how all browsers behaves when setting hash value through location.replace)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment