fix: prevent circular reference && Cannot access … before initialization

This commit is contained in:
Martin Guillon
2020-12-18 09:25:30 +01:00
parent 96099892ba
commit 3accdb3f06

View File

@ -94,7 +94,7 @@ export class PageBase extends ContentView {
get frame(): Frame {
const frame = this.parent;
return frame instanceof Frame ? frame : undefined;
return (frame && frame.constructor.name === 'Frame') ? frame as Frame : undefined;
}
private createNavigatedData(eventName: string, isBackNavigation: boolean): NavigatedData {