MCPcopy Create free account
hub / github.com/mailru/FileAPI / getHash

Function getHash

flash/image/html-template/history/history.js:200–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 3

hashChangeHandlerFunction · 0.70
checkForUrlChangeFunction · 0.70
history.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…