Skip to content

Commit

Permalink
Issue #1 - Added pushState() to navigate() method
Browse files Browse the repository at this point in the history
  • Loading branch information
ksafranski committed Feb 7, 2013
1 parent 5a3fa32 commit c7a5de6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion demo/js/libs/colt.0.3.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ define(function () {
root = location.pathname.replace(/[^\/]$/, '$&');

// Change the URL
location.replace(root + location.search + '#!/' + fragment);
if(history.pushState()){
history.pushState(null, document.title, location.search + '#!/' + fragment);
}else{
location.replace(root + location.search + '#!/' + fragment);
}

},

Expand Down

0 comments on commit c7a5de6

Please sign in to comment.