Skip to content

Commit

Permalink
ensure getHash return value is consistent with location.hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Feldman committed Sep 27, 2014
1 parent 5dc8775 commit 80d7253
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions build/director.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


//
// Generated on Fri Sep 26 2014 20:08:22 GMT-0400 (EDT) by Nodejitsu, Inc (Using Codesurgeon).
// Generated on Fri Sep 26 2014 20:19:31 GMT-0400 (EDT) by Nodejitsu, Inc (Using Codesurgeon).
// Version 1.2.5
//

Expand All @@ -18,7 +18,9 @@
var dloc = document.location;

function getHash() {
return dloc.href.split("#")[1] || '';
var hash = dloc.href.split("#")[1] || '';
if (hash !== '') { hash = '#' + hash }
return hash;
}

function dlocHashEmpty() {
Expand Down
Loading

0 comments on commit 80d7253

Please sign in to comment.