[+] Encapsulate updateIndex with only hash
This commit is contained in:
@@ -11,6 +11,17 @@ export default class Navigator
|
|||||||
private activeIndex: Index;
|
private activeIndex: Index;
|
||||||
private updateCallback?: () => void;
|
private updateCallback?: () => void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update index
|
||||||
|
*
|
||||||
|
* @param hash
|
||||||
|
* @param history Record in history or not (Default true)
|
||||||
|
*/
|
||||||
|
updateIndexHash(hash: string, history?: boolean)
|
||||||
|
{
|
||||||
|
this.updateIndex({hash: hash}, history)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update index
|
* Update index
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user