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/develop] - Fixed NumericOnlyTextInputBead for HTML/JS platform.
Date Wed, 11 Jan 2017 15:01:09 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop 3727c359c -> e05090881


Fixed NumericOnlyTextInputBead for HTML/JS platform.


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

Branch: refs/heads/develop
Commit: e0509088110c7f1e616ff087b2b3fe8f448f7cc3
Parents: 3727c35
Author: Peter Ent <pent@apache.org>
Authored: Wed Jan 11 10:01:05 2017 -0500
Committer: Peter Ent <pent@apache.org>
Committed: Wed Jan 11 10:01:05 2017 -0500

----------------------------------------------------------------------
 .../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/e0509088/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
index 0da2bb8..c92f202 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/accessories/NumericOnlyTextInputBead.as
@@ -31,6 +31,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
@@ -82,7 +83,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