set to true if undefined passed in as well
This commit is contained in:
parent
4fe971775c
commit
087aff4ef4
1 changed files with 2 additions and 2 deletions
|
@ -58,9 +58,9 @@ export class Navigation {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Segment {
|
export class Segment {
|
||||||
constructor(type, value = true) {
|
constructor(type, value) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.value = value;
|
this.value = value === undefined ? true : value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue