()
| 198 | |
| 199 | /* Get the current location hash excluding the '#' symbol. */ |
| 200 | function getHash() { |
| 201 | // It would be nice if we could use document.location.hash here, |
| 202 | // but it's faulty sometimes. |
| 203 | var idx = document.location.href.indexOf('#'); |
| 204 | return (idx >= 0) ? document.location.href.substr(idx+1) : ''; |
| 205 | } |
| 206 | |
| 207 | /* Get the current location hash excluding the '#' symbol. */ |
| 208 | function setHash(hash) { |
no outgoing calls
no test coverage detected
searching dependent graphs…