You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/12/11 06:59:13 UTC
[royale-asjs] 02/03: Revert "Spark TextInput: Partially revert
commit from Pashmina to fix build"
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit fc26ed920655a1e7064540ecda723be6e70b2d18
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Dec 10 22:01:36 2019 -0800
Revert "Spark TextInput: Partially revert commit from Pashmina to fix build"
This reverts commit 6d7f0948cf02dc0a9c6c717b2d93347d9ccc6d45.
---
.../src/main/royale/spark/components/TextInput.as | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
index e2adaaf..db97881 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/TextInput.as
@@ -288,7 +288,22 @@ public class TextInput extends SkinnableTextBase
//[Bindable("textChanged")]
// Compiler will strip leading and trailing whitespace from text string.
-
+ [CollapseWhiteSpace]
+
+ /**
+ * @private
+ */
+ override public function get text():String
+ {
+ COMPILE::SWF
+ {
+ return ITextModel(model).text;
+ }
+ COMPILE::JS
+ {
+ return (element as HTMLInputElement).value;
+ }
+ }
override public function set text(value:String):void
{
// BEGIN - this code shouldn't exist once SkinnableTextBase is fixed