flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/3] git commit: [flex-asjs] [refs/heads/refactor-sprite] - fix a few more bugs in DataBindingExample
Date Thu, 04 Aug 2016 04:46:11 GMT
fix a few more bugs in DataBindingExample


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

Branch: refs/heads/refactor-sprite
Commit: 184ef2d81096e19c9f8f552601c2335efef2e0f9
Parents: bd849c4
Author: Alex Harui <aharui@apache.org>
Authored: Wed Aug 3 21:45:52 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Aug 3 21:45:52 2016 -0700

----------------------------------------------------------------------
 .../Core/src/main/flex/org/apache/flex/core/Application.as       | 1 +
 .../Core/src/main/flex/org/apache/flex/core/CSSTextField.as      | 2 ++
 .../flex/org/apache/flex/events/utils/MouseEventConverter.as     | 4 ++--
 3 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/184ef2d8/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
index 693b442..aea6c38 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/Application.as
@@ -141,6 +141,7 @@ package org.apache.flex.core
 		{
 			element = r;	
 			MouseEventConverter.setupAllConverters(r.stage);
+            MouseEventConverter.setupAllConverters(r.stage, false);
 			initHandler();
 		}
 		

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/184ef2d8/frameworks/projects/Core/src/main/flex/org/apache/flex/core/CSSTextField.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/CSSTextField.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/CSSTextField.as
index f50a2c6..6ec8158 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/core/CSSTextField.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/core/CSSTextField.as
@@ -109,6 +109,8 @@ package org.apache.flex.core
 		override public function set text(value:String):void
 		{
 			var sp:Object = parent;
+            if (sp is IFlexJSElement)
+                sp = sp.flexjs_wrapper;
 			if (styleParent)
 				sp = styleParent;
 			sp.addEventListener("classNameChanged", updateStyles);

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/184ef2d8/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
index 48ff1fa..72f4ff1 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
@@ -150,10 +150,10 @@ package org.apache.flex.events.utils
          *  @playerversion AIR 2.6
          *  @productversion FlexJS 0.0
          */
-        public static function setupAllConverters(target:IEventDispatcher):void
+        public static function setupAllConverters(target:IEventDispatcher, capture:Boolean
= true):void
         {
             for each (var eventType:String in allConvertedEvents)
-                target.addEventListener(eventType, eventHandler, true, 9999);
+                target.addEventListener(eventType, eventHandler, capture, 9999);
         }
 
         /**


Mime
View raw message