mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
fix: prevent circular reference && Cannot access … before initialization
This commit is contained in:
@ -94,7 +94,7 @@ export class PageBase extends ContentView {
|
|||||||
get frame(): Frame {
|
get frame(): Frame {
|
||||||
const frame = this.parent;
|
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 {
|
private createNavigatedData(eventName: string, isBackNavigation: boolean): NavigatedData {
|
||||||
|
Reference in New Issue
Block a user