This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new c6c71b4  Make Jewel Form output form element instead div in HTML
c6c71b4 is described below

commit c6c71b4ec71c5adba979dd22a82eae6211af94e8
Author: Carlos Rovira <[email protected]>
AuthorDate: Sat Oct 27 11:50:56 2018 +0200

    Make Jewel Form output form element instead div in HTML
---
 .../Jewel/src/main/royale/org/apache/royale/jewel/Form.as | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Form.as 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Form.as
index e1d75f7..17c7f4c 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Form.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Form.as
@@ -18,6 +18,12 @@
 
////////////////////////////////////////////////////////////////////////////////
 package org.apache.royale.jewel
 {
+    COMPILE::JS
+    {
+        import org.apache.royale.core.WrappedHTMLElement;
+        import org.apache.royale.html.util.addElementToWrapper;
+    }
+
     import org.apache.royale.core.IParent;
     import org.apache.royale.core.IPopUpHost;
     import org.apache.royale.core.IPopUpHostParent;
@@ -86,5 +92,14 @@ package org.apache.royale.jewel
         {
             return this;
         }
+
+        /**
+                * @royaleignorecoercion 
org.apache.royale.core.WrappedHTMLElement
+                */
+               COMPILE::JS
+               override protected function createElement():WrappedHTMLElement
+               {
+                       return addElementToWrapper(this,'form');
+               }
     }
 }
\ No newline at end of file

Reply via email to