flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [04/50] git commit: [flex-asjs] [refs/heads/feature/mdl] - Use interfaces where possible.
Date Mon, 19 Dec 2016 02:17:52 GMT
Use interfaces where possible.


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

Branch: refs/heads/feature/mdl
Commit: 1aa952512fbed859d5323df2859fba7bafe8fdaa
Parents: 6509087
Author: yishayw <yishayjobs@hotmail.com>
Authored: Sun Dec 11 13:26:58 2016 +0200
Committer: yishayw <yishayjobs@hotmail.com>
Committed: Sun Dec 11 13:26:58 2016 +0200

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/html/beads/AccordionView.as | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/1aa95251/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/AccordionView.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/AccordionView.as
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/AccordionView.as
index c57aacf..c4f7da0 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/AccordionView.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/beads/AccordionView.as
@@ -18,9 +18,8 @@
 ////////////////////////////////////////////////////////////////////////////////
 package org.apache.flex.html.beads
 {
-	import org.apache.flex.core.ILayoutChild;
 	import org.apache.flex.core.ISelectionModel;
-	import org.apache.flex.core.UIBase;
+	import org.apache.flex.core.IStyleableObject;
 	import org.apache.flex.core.ValuesManager;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.html.beads.layouts.IOneFlexibleChildLayout;
@@ -38,7 +37,7 @@ package org.apache.flex.html.beads
 		override protected function selectionChangeHandler(event:Event):void
 		{
 			super.selectionChangeHandler(event);
-			var renderer:UIBase = dataGroup.getItemRendererForIndex(listModel.selectedIndex) as UIBase;
+			var renderer:IStyleableObject = dataGroup.getItemRendererForIndex(listModel.selectedIndex)
as IStyleableObject;
 			layout.flexibleChild = renderer.id;
 		}
 		
@@ -68,7 +67,7 @@ package org.apache.flex.html.beads
 				if (!layout.flexibleChild)
 				{
 					var model:ISelectionModel = StrandUtils.loadBead(ISelectionModel, "iBeadModel", host)
as ISelectionModel;
-					layout.flexibleChild = (model.selectedItem as UIBase).id;
+					layout.flexibleChild = (dataGroup.getItemRendererForIndex(model.selectedIndex) as IStyleableObject).id;
 				}
 				super.performLayout(event);
 			}


Mime
View raw message