Permalink
Browse files

Use location.replace for hash

  • Loading branch information...
1 parent b8840b2 commit bb6073909e1486ce671c421dd5edc8448060de10 @dhcole dhcole committed Apr 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 control/lib/hash.js
View
@@ -10,7 +10,8 @@ wax.hash = function(options) {
}
function pushState(state) {
- location.hash = '#' + state;
+ var l = window.location;
+ l.replace(l.toString().replace(l.hash, '#' + state));
}
var s0, // old hash

0 comments on commit bb60739

Please sign in to comment.