[O] Make identifier required
This commit is contained in:
@@ -4,7 +4,7 @@ export interface Index
|
|||||||
{
|
{
|
||||||
hash: string
|
hash: string
|
||||||
title?: string
|
title?: string
|
||||||
identifier?: string
|
identifier: string
|
||||||
info?: any
|
info?: any
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ export default class NavController
|
|||||||
updateIndex(index: Index | string, history?: boolean)
|
updateIndex(index: Index | string, history?: boolean)
|
||||||
{
|
{
|
||||||
// Convert index format if it is hash only
|
// Convert index format if it is hash only
|
||||||
if (typeof index == 'string') index = {hash: index};
|
if (typeof index == 'string') index = {hash: index, identifier: index};
|
||||||
|
|
||||||
// Call custom event
|
// Call custom event
|
||||||
if (this.updateCallback != null) this.updateCallback();
|
if (this.updateCallback != null) this.updateCallback();
|
||||||
|
|||||||
Reference in New Issue
Block a user