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/30 16:57:59 UTC

[1/4] git commit: [flex-asjs] - SimpleBinding must use flash.Events on the AS side for click and other mouse events

Updated Branches:
  refs/heads/develop 128e84ca9 -> cc79edbed


SimpleBinding must use flash.Events on the AS side for click and other mouse events


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

Branch: refs/heads/develop
Commit: 05632ae947411f0c47770c0be99497a9447d3697
Parents: 128e84c
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 30 07:41:15 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 30 07:41:15 2013 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/binding/SimpleBinding.as   |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/05632ae9/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as b/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as
index c5bd392..6e5a72a 100644
--- a/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as
+++ b/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as
@@ -18,11 +18,12 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.binding
 {	
+	import flash.events.IEventDispatcher;
+	import flash.events.Event;
+
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IStrand;
 	import org.apache.flex.core.IDocument;
-	import org.apache.flex.events.Event;
-	import org.apache.flex.events.IEventDispatcher;
 
 	public class SimpleBinding implements IBead, IDocument
 	{


[3/4] git commit: [flex-asjs] - add initComplete event sort of like creationComplete in current Flex SDK

Posted by ah...@apache.org.
add initComplete event sort of like creationComplete in current Flex SDK


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

Branch: refs/heads/develop
Commit: fe54045f9ea16b9846f47985312375edd920ea6e
Parents: 81a2aab
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 30 07:42:43 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 30 07:42:43 2013 -0700

----------------------------------------------------------------------
 frameworks/as/src/org/apache/flex/core/ViewBase.as |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fe54045f/frameworks/as/src/org/apache/flex/core/ViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/core/ViewBase.as b/frameworks/as/src/org/apache/flex/core/ViewBase.as
index 91f569e..f9b96f1 100644
--- a/frameworks/as/src/org/apache/flex/core/ViewBase.as
+++ b/frameworks/as/src/org/apache/flex/core/ViewBase.as
@@ -22,6 +22,7 @@ package org.apache.flex.core
 	import org.apache.flex.events.Event;	
 	import org.apache.flex.utils.MXMLDataInterpreter;
 
+	[Event(name="initComplete", type="org.apache.flex.events.Event")]
 	[DefaultProperty("mxmlContent")]
 	public class ViewBase extends UIBase
 	{
@@ -40,6 +41,8 @@ package org.apache.flex.core
 			
 			MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
 			MXMLDataInterpreter.generateMXMLInstances(this, this, MXMLDescriptor);
+			
+			dispatchEvent(new Event("initComplete"))
 		}
 		
 		public function get MXMLDescriptor():Array


[2/4] git commit: [flex-asjs] - Handle MXML views not having any styles

Posted by ah...@apache.org.
Handle MXML views not having any styles


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

Branch: refs/heads/develop
Commit: 81a2aab88b930f1a7232841bb433a0387e7c7c87
Parents: 05632ae
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 30 07:41:51 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 30 07:41:51 2013 -0700

----------------------------------------------------------------------
 .../org/apache/flex/core/SimpleCSSValuesImpl.as    |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/81a2aab8/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as b/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
index 129060e..dab5799 100644
--- a/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
+++ b/frameworks/as/src/org/apache/flex/core/SimpleCSSValuesImpl.as
@@ -59,6 +59,11 @@ package org.apache.flex.core
         
         public function generateCSSStyleDeclarations(factoryFunctions:Object, arr:Array):void
         {
+			if (factoryFunctions == null)
+				return;
+			if (arr == null)
+				return;
+			
             var declarationName:String = "";
             var segmentName:String = "";
             var n:int = arr.length;


[4/4] git commit: [flex-asjs] - Selection Model should send selectedIndexChanged as well when selectedItem changed

Posted by ah...@apache.org.
Selection Model should send selectedIndexChanged as well when selectedItem changed


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

Branch: refs/heads/develop
Commit: cc79edbed710ac39615ff4600325b8ce690e9748
Parents: fe54045
Author: Alex Harui <ah...@apache.org>
Authored: Tue Apr 30 07:43:15 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Apr 30 07:43:15 2013 -0700

----------------------------------------------------------------------
 .../beads/models/ArraySelectionModel.as            |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/cc79edbe/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/ArraySelectionModel.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/ArraySelectionModel.as b/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/ArraySelectionModel.as
index 600f84e..1e1aade 100644
--- a/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/ArraySelectionModel.as
+++ b/frameworks/as/src/org/apache/flex/html/staticControls/beads/models/ArraySelectionModel.as
@@ -87,6 +87,7 @@ package org.apache.flex.html.staticControls.beads.models
 				}
 			}
 			dispatchEvent(new Event("selectedItemChanged"));			
+			dispatchEvent(new Event("selectedIndexChanged"));			
 		}
 	}
 }
\ No newline at end of file