Delete unused code.
This commit is contained in:
parent
69b15ff559
commit
0b77192ac5
@ -46,23 +46,6 @@ OV.HashHandler = class
|
|||||||
this.SetHash (params);
|
this.SetHash (params);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetFromHash (keyword)
|
|
||||||
{
|
|
||||||
let hash = this.GetHash ();
|
|
||||||
if (hash.length === 0) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
let keywordToken = keyword + '=';
|
|
||||||
let hashParts = hash.split ('$');
|
|
||||||
for (let i = 0; i < hashParts.length; i++) {
|
|
||||||
let hashPart = hashParts[i];
|
|
||||||
if (hashPart.startsWith (keywordToken)) {
|
|
||||||
return hashPart.substr (keywordToken.length);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
GetHash ()
|
GetHash ()
|
||||||
{
|
{
|
||||||
return window.location.hash.substr (1);
|
return window.location.hash.substr (1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user