flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - At last, the solution to be able to have text in a node or needed tags :)
Date Sat, 10 Dec 2016 11:33:36 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop fa022f512 -> 75245a623


At last, the solution to be able to have text in a node or needed tags :)


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

Branch: refs/heads/develop
Commit: 75245a62336bc0ac46d2423ae6d3d8cf3be78159
Parents: fa022f5
Author: Carlos Rovira <carlosrovira@apache.org>
Authored: Sat Dec 10 12:33:31 2016 +0100
Committer: Carlos Rovira <carlosrovira@apache.org>
Committed: Sat Dec 10 12:33:31 2016 +0100

----------------------------------------------------------------------
 .../mdl/supportClasses/ListItemPrimaryContent.as  | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/75245a62/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/supportClasses/ListItemPrimaryContent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/supportClasses/ListItemPrimaryContent.as
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/supportClasses/ListItemPrimaryContent.as
index cc84894..99e6fb2 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/supportClasses/ListItemPrimaryContent.as
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/supportClasses/ListItemPrimaryContent.as
@@ -70,18 +70,14 @@ package org.apache.flex.mdl.supportClasses
 		{
              _text = value;
 
-			 COMPILE::JS
+			COMPILE::JS
 			{
-				if(textNode != null)
-				{
-					textNode.nodeValue = text;
-				}	
+				if(MXMLDescriptor == null) {
+					element.innerHTML = text;
+				}
 			}
 		}
 
-		COMPILE::JS
-        private var textNode:Text;
-
         /**
          * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
          */
@@ -91,12 +87,6 @@ package org.apache.flex.mdl.supportClasses
             typeNames = "mdl-list__item-primary-content";
 
 			element = document.createElement('span') as WrappedHTMLElement;
-            
-			if(MXMLDescriptor == null)
-			{
-				textNode = document.createTextNode('') as Text;
-				element.appendChild(textNode);
-			}
 
             positioner = element;
             element.flexjs_wrapper = this;


Mime
View raw message