flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [14/50] [abbrv] git commit: [flex-asjs] [refs/heads/dual] - replicate e0509088110c7f1e616ff087b2b3fe8f448f7cc3 to Basic
Date Thu, 09 Feb 2017 05:45:06 GMT
replicate e0509088110c7f1e616ff087b2b3fe8f448f7cc3 to Basic


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

Branch: refs/heads/dual
Commit: b0f12eeb85515cb93d77f8a8fd61f2332a155f2e
Parents: 1b82025
Author: Alex Harui <aharui@apache.org>
Authored: Mon Feb 6 09:53:02 2017 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Mon Feb 6 09:53:02 2017 -0800

----------------------------------------------------------------------
 .../org/apache/flex/html/accessories/NumericOnlyTextInputBead.as | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b0f12eeb/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
index 3b23f5b..85ffb4f 100644
--- a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
+++ b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
@@ -30,6 +30,7 @@ package org.apache.flex.html.accessories
 	}
 	import org.apache.flex.core.IBead;
 	import org.apache.flex.core.IStrand;
+    import org.apache.flex.core.UIBase;
 	import org.apache.flex.events.Event;
 	import org.apache.flex.events.IEventDispatcher;
 	COMPILE::SWF
@@ -81,7 +82,8 @@ package org.apache.flex.html.accessories
 			}
 			COMPILE::JS
 			{
-				IEventDispatcher(value).addEventListener("keypress",validateInput);									
+                var host:UIBase = _strand as UIBase;
+                host.element.addEventListener("keypress", validateInput, false);
 			}
 		}
 		


Mime
View raw message