()
| 189 | |
| 190 | /* Get the current location hash excluding the '#' symbol. */ |
| 191 | function getHash() { |
| 192 | // It would be nice if we could use document.location.hash here, |
| 193 | // but it's faulty sometimes. |
| 194 | var idx = document.location.href.indexOf('#'); |
| 195 | return (idx >= 0) ? document.location.href.substr(idx+1) : ''; |
| 196 | } |
| 197 | |
| 198 | /* Get the current location hash excluding the '#' symbol. */ |
| 199 | function setHash(hash) { |
no outgoing calls
no test coverage detected
searching dependent graphs…