This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 112c94d639aec04cbe1a3ba19f6418f4c389db87
Author: Alex Harui <[email protected]>
AuthorDate: Sun Mar 18 21:36:30 2018 -0700

    try to handle no initialView
---
 .../Basic/src/main/royale/org/apache/royale/core/Application.as     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
index c8d9e47..65c6731 100644
--- 
a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
+++ 
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/Application.as
@@ -655,11 +655,11 @@ package org.apache.royale.core
                        
                        dispatchEvent('initialize');
                        
-                       initialView.applicationModel = model;
-                       addElement(initialView);
-                       
                        if (initialView)
                        {
+                initialView.applicationModel = model;
+                addElement(initialView);
+                
                                var baseView:UIBase = initialView as UIBase;
                                if (!isNaN(baseView.percentWidth) || 
!isNaN(baseView.percentHeight)) {
                                        this.element.style.height = 
window.innerHeight.toString() + 'px';

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to