You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/12/01 10:14:22 UTC
[4/5] git commit: [flex-asjs] [refs/heads/core_js_to_as] - fix
textarea
fix textarea
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/872e6856
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/872e6856
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/872e6856
Branch: refs/heads/core_js_to_as
Commit: 872e685698b4f179cc89401ff0c5234961e11db6
Parents: 9cddf04
Author: Alex Harui <ah...@apache.org>
Authored: Mon Nov 30 22:13:13 2015 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Nov 30 22:13:13 2015 -0800
----------------------------------------------------------------------
.../as/src/org/apache/flex/html/TextArea.as | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/872e6856/frameworks/projects/HTML/as/src/org/apache/flex/html/TextArea.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/TextArea.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/TextArea.as
index 79ed2d5..57bc3c3 100644
--- a/frameworks/projects/HTML/as/src/org/apache/flex/html/TextArea.as
+++ b/frameworks/projects/HTML/as/src/org/apache/flex/html/TextArea.as
@@ -56,18 +56,34 @@ package org.apache.flex.html
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
+ * @flexjsignorecoercion HTMLInputElement
*/
public function get text():String
{
- return ITextModel(model).text;
+ COMPILE::AS3
+ {
+ return ITextModel(model).text;
+ }
+ COMPILE::JS
+ {
+ return (element as HTMLInputElement).value;
+ }
}
/**
* @private
+ * @flexjsignorecoercion HTMLInputElement
*/
public function set text(value:String):void
{
- ITextModel(model).text = value;
+ COMPILE::AS3
+ {
+ ITextModel(model).text = value;
+ }
+ COMPILE::JS
+ {
+ (element as HTMLInputElement).value = value;
+ }
}
/**