flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/3] git commit: [flex-asjs] [refs/heads/develop] - adjust startup APIs. Falcon will inject call to generateMXMLProperties in constructor
Date Thu, 07 Nov 2013 00:54:51 GMT
Updated Branches:
  refs/heads/develop 9250591b6 -> 984c6f878


adjust startup APIs.  Falcon will inject call to generateMXMLProperties in constructor


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

Branch: refs/heads/develop
Commit: c5bec2612f8d20df027541c7e6f7bd4f546df837
Parents: 9250591
Author: Alex Harui <aharui@apache.org>
Authored: Wed Nov 6 08:01:23 2013 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Nov 6 08:08:28 2013 -0800

----------------------------------------------------------------------
 frameworks/as/src/org/apache/flex/core/Application.as | 6 ++----
 frameworks/as/src/org/apache/flex/core/ViewBase.as    | 8 +++++---
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c5bec261/frameworks/as/src/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/core/Application.as b/frameworks/as/src/org/apache/flex/core/Application.as
index eef71d1..a126b6f 100644
--- a/frameworks/as/src/org/apache/flex/core/Application.as
+++ b/frameworks/as/src/org/apache/flex/core/Application.as
@@ -52,8 +52,6 @@ package org.apache.flex.core
 
         private function initHandler(event:flash.events.Event):void
         {
-	        MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
-
             ValuesManager.valuesImpl = valuesImpl;
             ValuesManager.valuesImpl.init(this);
 
@@ -77,9 +75,9 @@ package org.apache.flex.core
             return null;
         }
 
-    	public function get MXMLProperties():Array
+    	public function generateMXMLAttributes(data:Array):void
         {
-            return null;
+			MXMLDataInterpreter.generateMXMLProperties(this, data);
         }
         
         // beads declared in MXML are added to the strand.

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c5bec261/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 3e92893..4e923a1 100644
--- a/frameworks/as/src/org/apache/flex/core/ViewBase.as
+++ b/frameworks/as/src/org/apache/flex/core/ViewBase.as
@@ -39,7 +39,7 @@ package org.apache.flex.core
 			// each MXML file can also have styles in fx:Style block
 			ValuesManager.valuesImpl.init(this);
 			
-			MXMLDataInterpreter.generateMXMLProperties(this, MXMLProperties);
+			MXMLDataInterpreter.generateMXMLProperties(this, mxmlProperties);
 			MXMLDataInterpreter.generateMXMLInstances(this, this, MXMLDescriptor);
 			
 			dispatchEvent(new Event("initComplete"))
@@ -50,9 +50,11 @@ package org.apache.flex.core
 			return null;
 		}
 		
-		public function get MXMLProperties():Array
+		private var mxmlProperties:Array ;
+		
+		public function generateMXMLAttributes(data:Array):void
 		{
-			return null;
+			mxmlProperties = data;
 		}
 		
 		public var mxmlContent:Array;


Mime
View raw message