This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/royalesite in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit bfa30a4cbe139f440097e7e7af8a436ca7db1b57 Author: Alex Harui <[email protected]> AuthorDate: Tue Dec 26 00:13:27 2017 -0800 change to innerHTML as the special property. requires compiler update --- .../apache/royale/html/TextNodeContainerBase.as | 27 +--------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/TextNodeContainerBase.as b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/TextNodeContainerBase.as index d0fca4a..09bd62e 100644 --- a/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/TextNodeContainerBase.as +++ b/frameworks/projects/HTML/src/main/royale/org/apache/royale/html/TextNodeContainerBase.as @@ -20,7 +20,7 @@ package org.apache.royale.html { import org.apache.royale.core.UIBase; - [DefaultProperty("mxmlContent|textContent")] + [DefaultProperty("mxmlContent|innerHTML")] public class TextNodeContainerBase extends NodeElementBase { @@ -59,31 +59,6 @@ package org.apache.royale.html } } - private var _textContent:String = ""; - - /** - * The innerHTML of the element - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion Royale 0.0 - */ - public function get textContent():String - { - // textContent is special cased in the compiler - return _textContent; - } - public function set textContent(value:String):void - { - _textContent = value; - - COMPILE::JS - { - element.innerHTML = value; - } - } - COMPILE::JS protected var textNode:Text; -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
