royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 01/02: have to make a new script in some browsers like Safari in order to load a second module
Date Tue, 18 Sep 2018 22:43:45 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit c18bc9457fd2336c243d105941d6fded44549805
Author: Alex Harui <aharui@apache.org>
AuthorDate: Tue Sep 18 15:38:11 2018 -0700

    have to make a new script in some browsers like Safari in order to load a second module
---
 .../main/royale/org/apache/royale/utils/UIModuleUtils.as | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
index 1f4840d..760f42d 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/utils/UIModuleUtils.as
@@ -135,19 +135,15 @@ package org.apache.royale.utils
 				
                 if (goog.DEBUG)
                 {
-                    if (jsDepsLoader == null) {
-                        jsDepsLoader = document.createElement('script') as WrappedHTMLElement;
-                        jsDepsLoader.onload = loadDepsHandler;
-                        document.body.appendChild(jsDepsLoader);
-                    }                    
+                    jsDepsLoader = document.createElement('script') as WrappedHTMLElement;
+                    jsDepsLoader.onload = loadDepsHandler;
+                    document.body.appendChild(jsDepsLoader);
                 }
                 else
                 {
-    				if (jsLoader == null) {
-    					jsLoader = document.createElement('script') as WrappedHTMLElement;
-                        jsLoader.onload = loadHandler;
-    					document.body.appendChild(jsLoader);
-    				}
+					jsLoader = document.createElement('script') as WrappedHTMLElement;
+                    jsLoader.onload = loadHandler;
+					document.body.appendChild(jsLoader);
                 }
 			}
 		}


Mime
View raw message