fix: Page and Frame isLoaded undefined checks (#6255)

* fix(view): isLoaded handling

closes https://github.com/NativeScript/NativeScript/issues/6179

* refactor: Error handling code in onCreateView
This commit is contained in:
Alexander Vakrilov
2018-09-13 16:51:49 +03:00
committed by vakrilov
parent 8575c60b13
commit 12fade7155
4 changed files with 23 additions and 8 deletions

View File

@@ -180,7 +180,7 @@ function initializeDialogFragment() {
}
const owner = this.owner;
if (!owner.isLoaded) {
if (owner && !owner.isLoaded) {
owner.callLoaded();
}
@@ -196,7 +196,7 @@ function initializeDialogFragment() {
}
const owner = this.owner;
if (owner.isLoaded) {
if (owner && owner.isLoaded) {
owner.callUnloaded();
}
}