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 2013/04/12 09:02:17 UTC

[1/6] git commit: Must use bracket syntax to keep closure compiler from renaming fields

Updated Branches:
  refs/heads/develop 00be4b995 -> 02eba9977


Must use bracket syntax to keep closure compiler from renaming fields


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

Branch: refs/heads/develop
Commit: ebdc5a74a4bfc5ddf715e3b8dd0bbc58f02c3861
Parents: 14a14f6
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 9 23:06:23 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 12 00:00:34 2013 -0700

----------------------------------------------------------------------
 .../src/StockDataJSONItemConverter.as              |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/ebdc5a74/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as b/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
index a030fe0..c381db1 100644
--- a/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
+++ b/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
@@ -30,7 +30,7 @@ package
         override public function convertItem(data:String):Object
         {
             var obj:Object = super.convertItem(data);
-            return obj.query.results.quote.Ask;
+            return obj['query']['results']['quote']['Ask'];
         }
     }
 }
\ No newline at end of file


[3/6] git commit: remove implicit imports as it confuses FB

Posted by ah...@apache.org.
remove implicit imports as it confuses FB


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

Branch: refs/heads/develop
Commit: e9c66bdea827c5c294f0419979d984fce9a2cf1c
Parents: 00be4b9
Author: Alex Harui <ah...@apache.org>
Authored: Sun Apr 7 21:21:18 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 12 00:00:34 2013 -0700

----------------------------------------------------------------------
 frameworks/as/flex-config.xml |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e9c66bde/frameworks/as/flex-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/flex-config.xml b/frameworks/as/flex-config.xml
index be60387..e91d830 100644
--- a/frameworks/as/flex-config.xml
+++ b/frameworks/as/flex-config.xml
@@ -205,13 +205,6 @@
 
       </fonts>
       
-      <!-- MXML automatically imports some classes. -->
-      <mxml>
-        <imports>
-          <implicit-import>org.apache.flex.events.Event</implicit-import>
-        </imports>
-      </mxml>
-      
       <!-- Array.toString() format has changed. -->
       <warn-array-tostring-changes>false</warn-array-tostring-changes>
 


[5/6] git commit: These FB Launch configs are no longer needed. They are autogenerated by the setuplaunches.sh/bat files

Posted by ah...@apache.org.
These FB Launch configs are no longer needed.  They are autogenerated by the setuplaunches.sh/bat files


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

Branch: refs/heads/develop
Commit: b9883e84fbcd011242c6ddc7f05c0446ab4f588d
Parents: 823ae17
Author: Alex Harui <ah...@apache.org>
Authored: Sun Apr 7 21:23:34 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 12 00:00:34 2013 -0700

----------------------------------------------------------------------
 frameworks/as/fb/FlexJS (Debug Build).launch       |   10 ----------
 .../as/fb/FlexJS (FalconJS Debug Build).launch     |   13 -------------
 .../as/fb/FlexJS (FalconJS Release Build).launch   |   13 -------------
 frameworks/as/fb/FlexJS (Release Build).launch     |    9 ---------
 4 files changed, 0 insertions(+), 45 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b9883e84/frameworks/as/fb/FlexJS (Debug Build).launch
----------------------------------------------------------------------
diff --git a/frameworks/as/fb/FlexJS (Debug Build).launch b/frameworks/as/fb/FlexJS (Debug Build).launch
deleted file mode 100644
index 01a18dd..0000000
--- a/frameworks/as/fb/FlexJS (Debug Build).launch	
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
-<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="false"/>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE" value="${project}"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler=&quot;${FLEX_HOME}&quot; -Dflexlib=&quot;${FLEX_HOME}/frameworks&quot; -jar ${FLEX_HOME}/lib/falcon-mxmlc.jar -compiler.mxml.children-as-data -debug -output=&quot;${project_loc}/bin-debug/${project_name}.swf&quot; &quot;${resource_loc}&quot;"/>
-</launchConfiguration>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b9883e84/frameworks/as/fb/FlexJS (FalconJS Debug Build).launch
----------------------------------------------------------------------
diff --git a/frameworks/as/fb/FlexJS (FalconJS Debug Build).launch b/frameworks/as/fb/FlexJS (FalconJS Debug Build).launch
deleted file mode 100644
index c90f66b..0000000
--- a/frameworks/as/fb/FlexJS (FalconJS Debug Build).launch	
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
-<mapAttribute key="org.eclipse.debug.core.environmentVariables">
-<mapEntry key="FLEXJS_HOME" value="/Users/aharui/Work/apache/asjs/branches/develop/frameworks/js/FlexJS/src"/>
-<mapEntry key="GOOG_HOME" value="/Applications/GoogleClosure/library/closure/goog"/>
-</mapAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE" value="${project}"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler=&quot;${FLEX_HOME}&quot; -Dflexlib=&quot;${FLEX_HOME}/frameworks&quot; -jar ${FLEX_HOME}/js/lib/mxmlc.jar -compiler.mxml.children-as-data -debug -output=&quot;${project_loc}/binjs-debug/${project_name}.js&quot; &quot;${resource_loc}&quot;"/>
-</launchConfiguration>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b9883e84/frameworks/as/fb/FlexJS (FalconJS Release Build).launch
----------------------------------------------------------------------
diff --git a/frameworks/as/fb/FlexJS (FalconJS Release Build).launch b/frameworks/as/fb/FlexJS (FalconJS Release Build).launch
deleted file mode 100644
index 5b932c7..0000000
--- a/frameworks/as/fb/FlexJS (FalconJS Release Build).launch	
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
-<mapAttribute key="org.eclipse.debug.core.environmentVariables">
-<mapEntry key="FLEXJS_HOME" value="/Users/aharui/Work/apache/asjs/branches/develop/frameworks/js/FlexJS/src"/>
-<mapEntry key="GOOG_HOME" value="/Applications/GoogleClosure/library/closure/goog"/>
-</mapAttribute>
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE" value="${project}"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler=&quot;${FLEX_HOME}&quot; -Dflexlib=&quot;${FLEX_HOME}/frameworks&quot; -jar ${FLEX_HOME}/js/lib/mxmlc.jar -compiler.mxml.children-as-data -output=&quot;${project_loc}/binjs-release/${project_name}.js&quot; &quot;${resource_loc}&quot;"/>
-</launchConfiguration>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b9883e84/frameworks/as/fb/FlexJS (Release Build).launch
----------------------------------------------------------------------
diff --git a/frameworks/as/fb/FlexJS (Release Build).launch b/frameworks/as/fb/FlexJS (Release Build).launch
deleted file mode 100644
index 26a79d5..0000000
--- a/frameworks/as/fb/FlexJS (Release Build).launch	
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
-<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
-<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
-</listAttribute>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE" value="${project}"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java"/>
-<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler=&quot;${FLEX_HOME}&quot; -Dflexlib=&quot;${FLEX_HOME}/frameworks&quot; -jar ${FLEX_HOME}/lib/falcon-mxmlc.jar -compiler.mxml.children-as-data -output=&quot;${project_loc}/bin-release/${project_name}.swf&quot; &quot;${resource_loc}&quot;"/>
-</launchConfiguration>


[2/6] git commit: Expose public methods

Posted by ah...@apache.org.
Expose public methods


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

Branch: refs/heads/develop
Commit: 14a14f643c9c3c243a2e2626de0a1fe63865b2ad
Parents: b9883e8
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 9 23:05:47 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 12 00:00:34 2013 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/events/EventDispatcher.js  |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/14a14f64/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js b/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
index be66990..fb479f3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/EventDispatcher.js
@@ -33,6 +33,7 @@ goog.inherits(org.apache.flex.events.EventDispatcher,
     org.apache.flex.FlexGlobal);
 
 /**
+ * @expose
  * @this {org.apache.flex.events.EventDispatcher}
  * @param {string} type The event type.
  * @param {function(?): ?} fn The event handler.
@@ -46,6 +47,7 @@ org.apache.flex.events.EventDispatcher.prototype.addEventListener = function(typ
 };
 
 /**
+ * @expose
  * @this {org.apache.flex.events.EventDispatcher}
  * @param {string} type The event type.
  * @param {function(?): ?} fn The event handler.
@@ -68,6 +70,7 @@ org.apache.flex.events.EventDispatcher.prototype.removeEventListener = function(
 };
 
 /**
+ * @expose
  * @this {org.apache.flex.events.EventDispatcher}
  * @param {Object} event The event to dispatch.
  */
@@ -86,6 +89,7 @@ org.apache.flex.events.EventDispatcher.prototype.dispatchEvent = function(event)
 };
 
 /**
+ * @expose
  * @param {String} type The event type.
  * @returns {Object} event The event to dispatch.
  */


[4/6] git commit: fix unexposed property in SimpleBinding

Posted by ah...@apache.org.
fix unexposed property in SimpleBinding


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

Branch: refs/heads/develop
Commit: 823ae17b252bd561ba4cf5b3ba970b05ea45f891
Parents: e9c66bd
Author: Alex Harui <ah...@apache.org>
Authored: Sun Apr 7 21:22:53 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 12 00:00:34 2013 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/binding/SimpleBinding.js   |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/823ae17b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
index 3b75315..822b1ac 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/binding/SimpleBinding.js
@@ -23,6 +23,13 @@ goog.require('org.apache.flex.FlexObject');
  */
 org.apache.flex.binding.SimpleBinding = function() {
     org.apache.flex.FlexObject.call(this);
+    
+    /**
+     * @private
+     * @type {object}
+     */
+    this.document;
+
 };
 goog.inherits(
     org.apache.flex.binding.SimpleBinding, org.apache.flex.FlexObject
@@ -56,6 +63,12 @@ org.apache.flex.binding.SimpleBinding.prototype.source = null;
  * @expose
  * @type {string}
  */
+org.apache.flex.binding.SimpleBinding.prototype.sourceID = '';
+
+/**
+ * @expose
+ * @type {string}
+ */
 org.apache.flex.binding.SimpleBinding.prototype.sourcePropertyName = '';
 
 /**


[6/6] git commit: some fixes for test case

Posted by ah...@apache.org.
some fixes for test case


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

Branch: refs/heads/develop
Commit: 02eba99773dbc1a2580758690b6016af1079b3df
Parents: ebdc5a7
Author: Alex Harui <ah...@apache.org>
Authored: Thu Apr 11 23:59:04 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri Apr 12 00:00:35 2013 -0700

----------------------------------------------------------------------
 .../src/StockDataJSONItemConverter.as              |    2 ++
 .../src/org/apache/flex/core/HTMLElementWrapper.js |    1 +
 .../flex/html/staticControls/DropDownList.js       |    6 +++---
 .../org/apache/flex/html/staticControls/List.js    |    6 +++---
 4 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02eba997/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as b/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
index c381db1..2483ce0 100644
--- a/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
+++ b/examples/FlexJSTest_again/src/StockDataJSONItemConverter.as
@@ -30,6 +30,8 @@ package
         override public function convertItem(data:String):Object
         {
             var obj:Object = super.convertItem(data);
+			if (obj['query']['results'] == null)
+				return 'No Quote Available';
             return obj['query']['results']['quote']['Ask'];
         }
     }

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02eba997/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
index 95157d8..ec837af 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/HTMLElementWrapper.js
@@ -15,6 +15,7 @@
 goog.provide('org.apache.flex.core.HTMLElementWrapper');
 
 goog.require('org.apache.flex.FlexObject');
+goog.require('org.apache.flex.events.EventDispatcher');
 goog.require('org.apache.flex.utils.IE8Utils');
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02eba997/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
index 5d315ed..f6d15e5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
@@ -41,8 +41,8 @@ goog.inherits(
  */
 org.apache.flex.html.staticControls.DropDownList.prototype.addToParent = function(p) {
     this.element = document.createElement('select');
-    this.element.onchange = org.apache.flex.FlexGlobal.createProxy(
-                this, this.changeHandler);
+    //this.element.onchange = org.apache.flex.FlexGlobal.createProxy(
+    //            this, this.changeHandler);
                 
     p.appendChild(this.element);
 
@@ -138,7 +138,7 @@ function(value) {
  */
 org.apache.flex.html.staticControls.DropDownList.prototype.changeHandler =
 function() {
-    evt = this.createEvent('change');
+    var evt = this.createEvent('change');
     this.dispatchEvent(evt);
 };
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/02eba997/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
index 8986501..911b72b 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
@@ -41,8 +41,8 @@ goog.inherits(
  */
 org.apache.flex.html.staticControls.List.prototype.addToParent = function(p) {
     this.element = document.createElement('select');
-    this.element.onchange = org.apache.flex.FlexGlobal.createProxy(
-                this, this.changeHandler);
+    //this.element.onchange = org.apache.flex.FlexGlobal.createProxy(
+    //            this, this.changeHandler);
     this.element.size = 5;
                 
     p.appendChild(this.element);
@@ -139,7 +139,7 @@ function(value) {
  */
 org.apache.flex.html.staticControls.List.prototype.changeHandler =
 function() {
-    evt = this.createEvent('change');
+    var evt = this.createEvent('change');
     this.dispatchEvent(evt);
 };