Repository: flex-asjs
Updated Branches:
  refs/heads/develop a64e768ca -> 02da6b0bc


FLEX-35087 disable trace statements in release versions


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

Branch: refs/heads/develop
Commit: 02da6b0bc152d2233d3169bb0fbc188c96d62c79
Parents: a64e768
Author: Alex Harui <[email protected]>
Authored: Wed Nov 16 10:57:42 2016 -0800
Committer: Alex Harui <[email protected]>
Committed: Wed Nov 16 10:57:42 2016 -0800

----------------------------------------------------------------------
 .../Language/src/main/flex/org/apache/flex/utils/Language.as     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02da6b0b/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as 
b/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as
index 9ddc0d7..2182f2d 100644
--- 
a/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as
+++ 
b/frameworks/projects/Language/src/main/flex/org/apache/flex/utils/Language.as
@@ -324,10 +324,12 @@ package org.apache.flex.utils
                {
                        var theConsole:*;
 
+                       if (!goog.DEBUG) return;
+                       
                        theConsole = goog.global.console;
 
                        if (theConsole === undefined)
-                       {
+                       {                               
                                if(typeof window !== "undefined")
                                {
                                        theConsole = window.console;

Reply via email to