flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject git commit: [flex-asjs] [refs/heads/core_js_to_as] - Corrects the sending of the ButtonBarItemRenderer's selection event.
Date Tue, 17 Nov 2015 20:27:24 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/core_js_to_as e014a116c -> eb04bc8f3


Corrects the sending of the ButtonBarItemRenderer's selection event.


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

Branch: refs/heads/core_js_to_as
Commit: eb04bc8f31238643df5ee8519198e948bb759f80
Parents: e014a11
Author: Peter Ent <pent@apache.org>
Authored: Tue Nov 17 15:27:19 2015 -0500
Committer: Peter Ent <pent@apache.org>
Committed: Tue Nov 17 15:27:19 2015 -0500

----------------------------------------------------------------------
 .../html/beads/controllers/ListSingleSelectionMouseController.as | 2 --
 .../flex/html/supportClasses/ButtonBarButtonItemRenderer.as      | 4 +++-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/eb04bc8f/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
index e895d49..9760591 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/beads/controllers/ListSingleSelectionMouseController.as
@@ -28,7 +28,6 @@ package org.apache.flex.html.beads.controllers
 	import org.apache.flex.events.IEventDispatcher;
 	import org.apache.flex.events.MouseEvent;
 	import org.apache.flex.html.beads.IListView;
-	
 
     /**
      *  The ListSingleSelectionMouseController class is a controller for
@@ -107,7 +106,6 @@ package org.apache.flex.html.beads.controllers
 			dataGroup = listView.dataGroup;
             dataGroup.addEventListener("selected", selectedHandler, true);
             IEventDispatcher(_strand).addEventListener(MouseEvent.ROLL_OVER, rolloverHandler);
-//			dataGroup.addEventListener(MouseEvent.ROLL_OVER, rolloverHandler, true);
 		}
 		
         private function selectedHandler(event:Event):void

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/eb04bc8f/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.as
b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.as
index edc8de0..64a9e43 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ButtonBarButtonItemRenderer.as
@@ -20,6 +20,7 @@ package org.apache.flex.html.supportClasses
 {
 	import org.apache.flex.core.IItemRenderer;
 	import org.apache.flex.core.IItemRendererParent;
+	import org.apache.flex.core.UIBase;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.html.TextButton;
 	import org.apache.flex.html.beads.ITextItemRenderer;
@@ -64,7 +65,8 @@ package org.apache.flex.html.supportClasses
 		 */
 		private function handleClickEvent(event:Event):void
 		{
-			this.dispatchEvent(new Event("selected"));
+			var parent:Object = itemRendererParent;
+			(parent as UIBase).dispatchEvent(new Event("selected", this));
 		}
 		
 		/**


Mime
View raw message