Repository: flex-asjs
Updated Branches:
  refs/heads/develop 6e55c55c7 -> 5277a0cbd


Cleaned up HTML components


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5277a0cb
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5277a0cb
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5277a0cb

Branch: refs/heads/develop
Commit: 5277a0cbd6a6e2abed71efc3d7da63997d7895c8
Parents: 6e55c55
Author: Harbs <ha...@in-tools.com>
Authored: Sat Aug 12 22:01:10 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Sat Aug 12 22:01:10 2017 +0300

----------------------------------------------------------------------
 .../projects/HTML/src/main/flex/org/apache/flex/html/A.as     | 6 ++----
 .../projects/HTML/src/main/flex/org/apache/flex/html/H1.as    | 6 ++----
 .../projects/HTML/src/main/flex/org/apache/flex/html/H2.as    | 6 ++----
 .../projects/HTML/src/main/flex/org/apache/flex/html/H3.as    | 6 ++----
 .../projects/HTML/src/main/flex/org/apache/flex/html/H4.as    | 6 ++----
 .../projects/HTML/src/main/flex/org/apache/flex/html/H5.as    | 6 ++----
 .../projects/HTML/src/main/flex/org/apache/flex/html/H6.as    | 6 ++----
 .../projects/HTML/src/main/flex/org/apache/flex/html/I.as     | 6 ++----
 .../projects/HTML/src/main/flex/org/apache/flex/html/Li.as    | 7 ++-----
 .../HTML/src/main/flex/org/apache/flex/html/Select.as         | 3 +--
 .../projects/HTML/src/main/flex/org/apache/flex/html/Ul.as    | 5 +----
 11 files changed, 20 insertions(+), 43 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as
index fdb39b3..23c0cde 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/A.as
@@ -111,10 +111,8 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var a:HTMLElement = document.createElement('a') as 
HTMLElement;
-            a.setAttribute('href', href);
-            
-                       element = a as WrappedHTMLElement;
+            element = document.createElement('a') as WrappedHTMLElement;
+            element.setAttribute('href', href);
             
             positioner = element;
                        element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as
index 904b4dc..6a7d274 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H1.as
@@ -94,12 +94,10 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var h1:HTMLElement = document.createElement('h1') as 
HTMLElement;
+            element = document.createElement('h1') as WrappedHTMLElement;
             
             textNode = document.createTextNode('') as Text;
-            h1.appendChild(textNode); 
-
-                       element = h1 as WrappedHTMLElement;
+            element.appendChild(textNode); 
             
             positioner = element;
                        element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as
index e515fd5..7594984 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H2.as
@@ -94,12 +94,10 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var h2:HTMLElement = document.createElement('h2') as 
HTMLElement;
+            element = document.createElement('h2') as WrappedHTMLElement;
             
             textNode = document.createTextNode('') as Text;
-            h2.appendChild(textNode); 
-
-                       element = h2 as WrappedHTMLElement;
+            element.appendChild(textNode); 
             
             positioner = element;
                        element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as
index 6886e87..03badb0 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H3.as
@@ -94,12 +94,10 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var h3:HTMLElement = document.createElement('h3') as 
HTMLElement;
+            element = document.createElement('h3') as WrappedHTMLElement;
             
             textNode = document.createTextNode('') as Text;
-            h3.appendChild(textNode); 
-
-                       element = h3 as WrappedHTMLElement;
+            element.appendChild(textNode); 
             
             positioner = element;
                        element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as
index 096658a..305d5ff 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H4.as
@@ -94,12 +94,10 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var h4:HTMLElement = document.createElement('h4') as 
HTMLElement;
+            element = document.createElement('h4') as WrappedHTMLElement;
             
             textNode = document.createTextNode('') as Text;
-            h4.appendChild(textNode); 
-
-                       element = h4 as WrappedHTMLElement;
+            element.appendChild(textNode); 
             
             positioner = element;
                        element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as
index 932c69e..6f587f7 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H5.as
@@ -94,12 +94,10 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var h5:HTMLElement = document.createElement('h5') as 
HTMLElement;
+            element = document.createElement('h5') as WrappedHTMLElement;
             
             textNode = document.createTextNode('') as Text;
-            h5.appendChild(textNode); 
-
-                       element = h5 as WrappedHTMLElement;
+            element.appendChild(textNode); 
             
             positioner = element;
                        element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as
index b03eb24..a68ecd1 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/H6.as
@@ -94,13 +94,11 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var h6:HTMLElement = document.createElement('h6') as 
HTMLElement;
+            element = document.createElement('h6') as WrappedHTMLElement;
             
             textNode = document.createTextNode('') as Text;
-            h6.appendChild(textNode); 
+            element.appendChild(textNode); 
 
-                       element = h6 as WrappedHTMLElement;
-            
             positioner = element;
                        element.flexjs_wrapper = this;
             

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/I.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/I.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/I.as
index a1904ce..a0b3fdc 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/I.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/I.as
@@ -94,12 +94,10 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var a:HTMLElement = document.createElement('i') as 
HTMLElement;
+            element = document.createElement('i') as WrappedHTMLElement;
             
             textNode = document.createTextNode('') as Text;
-            a.appendChild(textNode); 
-
-                       element = a as WrappedHTMLElement;
+            element.appendChild(textNode);
             
             positioner = element;
                        element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as
index 90ea4ea..8a2a60f 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Li.as
@@ -50,15 +50,12 @@ package org.apache.flex.html
                
         /**
          * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
-                * @flexjsignorecoercion HTMLDivElement
+                * @flexjsignorecoercion HTMLElement
          */
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var li:HTMLLIElement = document.createElement('li') as 
HTMLLIElement;
-            
-            element = li as WrappedHTMLElement;
-            
+                       element = document.createElement('li') as 
WrappedHTMLElement;
             positioner = element;
                        element.flexjs_wrapper = this;
             

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Select.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Select.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Select.as
index 99c024a..e7cb862 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Select.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Select.as
@@ -57,8 +57,7 @@ package org.apache.flex.html
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var select:HTMLSelectElement = 
document.createElement('select') as HTMLSelectElement;
-                       element = select as WrappedHTMLElement;
+                       element = document.createElement('select') as 
WrappedHTMLElement;
             
             positioner = element;
                        element.flexjs_wrapper = this;

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5277a0cb/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as 
b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as
index 6c97f64..770d37f 100644
--- a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as
+++ b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/Ul.as
@@ -50,14 +50,11 @@ package org.apache.flex.html
                
         /**
          * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
-                * @flexjsignorecoercion HTMLDivElement
          */
         COMPILE::JS
         override protected function createElement():WrappedHTMLElement
         {
-                       var ul:HTMLUListElement = document.createElement('ul') 
as HTMLUListElement;
-            
-            element = ul as WrappedHTMLElement;
+                       element = document.createElement('ul') as 
WrappedHTMLElement;
             
             positioner = element;
                        element.flexjs_wrapper = this;

Reply via email to