flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshtynj...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Language: window is not available in Node, so checks for window.console only after goog.global.console is determined to be undefined
Date Tue, 12 Jan 2016 00:10:19 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 0d5a4c8e0 -> 2f055e3e5


Language: window is not available in Node, so checks for window.console only after goog.global.console
is determined to be undefined


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2f055e3e
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2f055e3e
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2f055e3e

Branch: refs/heads/develop
Commit: 2f055e3e55fa36e4d1a480848896e09454fa7d36
Parents: 0d5a4c8
Author: Josh Tynjala <joshtynjala@apache.org>
Authored: Mon Jan 11 16:10:11 2016 -0800
Committer: Josh Tynjala <joshtynjala@apache.org>
Committed: Mon Jan 11 16:10:11 2016 -0800

----------------------------------------------------------------------
 .../Core/as/src/org/apache/flex/utils/Language.as        | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2f055e3e/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as b/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
index 0627820..6a26191 100644
--- a/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
+++ b/frameworks/projects/Core/as/src/org/apache/flex/utils/Language.as
@@ -303,12 +303,17 @@ package org.apache.flex.utils
 		static public function trace(...rest):void
 		{
 			var theConsole:*;
-            var windowConsole:* = window.console;
 
 			theConsole = goog.global.console;
 
-			if (theConsole === undefined && windowConsole !== undefined)
-				theConsole = windowConsole;
+			if (theConsole === undefined)
+			{
+            	var windowConsole:* = window.console;
+				if (windowConsole !== undefined)
+				{
+					theConsole = windowConsole;
+				}
+			}
 
 			try
 			{


Mime
View raw message