flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yish...@apache.org
Subject [1/2] git commit: [flex-asjs] [refs/heads/tlf] - Make host the layout dispatcher to avoid confusion over what to listen to.
Date Tue, 27 Jun 2017 09:45:56 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/tlf 455f88020 -> 0d3bd3e4a


Make host the layout dispatcher to avoid confusion over what to listen
to.


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

Branch: refs/heads/tlf
Commit: 72db1209797a6be0157580ffb702caa938b2ee70
Parents: 3d21906
Author: DESKTOP-RH4S838\Yishay <yishayjobs@hotmail.com>
Authored: Tue Jun 27 12:39:14 2017 +0300
Committer: DESKTOP-RH4S838\Yishay <yishayjobs@hotmail.com>
Committed: Tue Jun 27 12:39:14 2017 +0300

----------------------------------------------------------------------
 .../org/apache/flex/html/beads/DispatchKeyboardEventBead.as | 3 +--
 .../src/main/flex/org/apache/flex/core/ImageViewBase.as     | 9 +++------
 2 files changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72db1209/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DispatchKeyboardEventBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DispatchKeyboardEventBead.as
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DispatchKeyboardEventBead.as
index fe09148..f5f8b8d 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DispatchKeyboardEventBead.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/DispatchKeyboardEventBead.as
@@ -39,8 +39,7 @@ package org.apache.flex.html.beads
 	}
 	
 	/**
-	 *  The DispatchKeyboardEventBead class dispatched INPUT_FINISHED on strand
-	 *  when enter is pressed, or when foucus is out.
+	 *  The DispatchKeyboardEventBead class dispatches a KeyboardEvent from a text input.
 	 *  
 	 *  @langversion 3.0
 	 *  @playerversion Flash 10.2

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/72db1209/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ImageViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ImageViewBase.as
b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ImageViewBase.as
index 1e76c0d..bfe7cf4 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ImageViewBase.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/ImageViewBase.as
@@ -206,13 +206,10 @@ package org.apache.flex.core
 		}
         
         COMPILE::JS
-        private function loadHandler(event:Object):void
+        protected function loadHandler(event:Object):void
         {
-            var host:IUIBase = IUIBase(_strand);
-			if (host.parent)
-			{
-            	IEventDispatcher(host.parent).dispatchEvent(new Event("layoutNeeded"));
-			}
+            var host:IUIBase = _strand as IUIBase;
+			host.dispatchEvent(new Event("layoutNeeded"));
         }
         
         /**


Mime
View raw message