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 <[email protected]> Authored: Mon Nov 30 22:13:13 2015 -0800 Committer: Alex Harui <[email protected]> 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; + } } /**
