You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/12/16 00:16:25 UTC
[1/2] git commit: [flex-asjs] [refs/heads/core_js_to_as] - fix
constant binding in release mode
Repository: flex-asjs
Updated Branches:
refs/heads/core_js_to_as 3f77eec61 -> c3c2403fe
fix constant binding in release mode
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/40535515
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/40535515
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/40535515
Branch: refs/heads/core_js_to_as
Commit: 405355157514f3882794855aa3261846e8d6fbf6
Parents: 3f77eec
Author: Alex Harui <ah...@apache.org>
Authored: Tue Dec 15 15:13:56 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Dec 15 15:13:56 2015 -0800
----------------------------------------------------------------------
.../org/apache/flex/binding/ConstantBinding.as | 22 ++++++++++++++++++++
1 file changed, 22 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/40535515/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as b/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
index 0a2ae83..050489a 100644
--- a/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
+++ b/frameworks/projects/Binding/as/src/org/apache/flex/binding/ConstantBinding.as
@@ -154,6 +154,28 @@ package org.apache.flex.binding
{
}
}
+ else
+ {
+ COMPILE::JS
+ {
+ // GCC optimizer only puts exported class constants on
+ // Window and not on the class itself (which got renamed)
+ var cname:Object = source.FLEXJS_CLASS_INFO;
+ if (cname)
+ {
+ cname = cname.names[0].qName;
+ var parts:Array = cname.split('.');
+ var n:int = parts.length;
+ var o:Object = window;
+ for (var i:int = 0; i < n; i++) {
+ o = o[parts[i]];
+ }
+ val = o[sourcePropertyName];
+ destination[destinationPropertyName] = val;
+ }
+ }
+ }
+
}
/**
[2/2] git commit: [flex-asjs] [refs/heads/core_js_to_as] - fix trace
Posted by ah...@apache.org.
fix trace
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c3c2403f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c3c2403f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c3c2403f
Branch: refs/heads/core_js_to_as
Commit: c3c2403fe30a100540cfe3449cbdfd9e8ec6e85e
Parents: 4053551
Author: Alex Harui <ah...@apache.org>
Authored: Tue Dec 15 15:16:13 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Dec 15 15:16:13 2015 -0800
----------------------------------------------------------------------
.../projects/Core/as/src/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/c3c2403f/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 7ea4713..ea51ab5 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
@@ -26,10 +26,12 @@ package org.apache.flex.utils
COMPILE::JS
{
import goog.bind;
+ import goog.global;
}
/**
* @flexjsignoreimport goog.bind
+ * @flexjsignoreimport goog.global
*/
COMPILE::JS
public class Language
@@ -294,7 +296,7 @@ package org.apache.flex.utils
msg += rest[i];
}
- theConsole = window["goog"]["global"]["console"];
+ theConsole = goog.global.console;
if (theConsole === undefined && windowConsole !== undefined)
theConsole = windowConsole;