royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [royale-asjs] branch develop updated: removed addStyles since is not used anymore
Date Fri, 08 Jun 2018 11:53:08 GMT
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 5a5d186  removed addStyles since is not used anymore
5a5d186 is described below

commit 5a5d186b8c9823d493e782b64202ef82678bad26
Author: Carlos Rovira <carlosrovira@apache.org>
AuthorDate: Fri Jun 8 13:52:59 2018 +0200

    removed addStyles since is not used anymore
---
 .../src/main/royale/org/apache/royale/jewel/CheckBox.as    |  1 -
 .../src/main/royale/org/apache/royale/jewel/Slider.as      |  1 -
 .../apache/royale/jewel/itemRenderers/ListItemRenderer.as  | 14 ++++++++++++--
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/CheckBox.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/CheckBox.as
index 7a8779c..709fdd6 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/CheckBox.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/CheckBox.as
@@ -35,7 +35,6 @@ package org.apache.royale.jewel
     {
         import org.apache.royale.core.WrappedHTMLElement;
         import org.apache.royale.html.util.addElementToWrapper;
-        import org.apache.royale.utils.cssclasslist.addStyles;
         import org.apache.royale.core.UIBase;
     }
 
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Slider.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Slider.as
index 14cffd2..707a8fe 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Slider.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Slider.as
@@ -27,7 +27,6 @@ package org.apache.royale.jewel
     {
         import org.apache.royale.core.WrappedHTMLElement;
 		import org.apache.royale.html.util.addElementToWrapper;
-		import org.apache.royale.utils.cssclasslist.addStyles; 
     }
 
 	//--------------------------------------
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/ListItemRenderer.as
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/ListItemRenderer.as
index d958422..fb8005d 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/ListItemRenderer.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/itemRenderers/ListItemRenderer.as
@@ -19,12 +19,12 @@
 package org.apache.royale.jewel.itemRenderers
 {
 	import org.apache.royale.core.MXMLItemRenderer;
+	import org.apache.royale.utils.ClassSelectorList;
 
     COMPILE::JS
     {
         import org.apache.royale.core.WrappedHTMLElement;
 		import org.apache.royale.html.util.addElementToWrapper;
-        import org.apache.royale.utils.cssclasslist.toggleStyle;
     }
 	
 	/**
@@ -49,8 +49,18 @@ package org.apache.royale.jewel.itemRenderers
 		{
 			super();
 
+			classSelectorList = new ClassSelectorList(this);
             typeNames = "jewel item";
 		}
+
+		protected var classSelectorList:ClassSelectorList;
+
+
+        COMPILE::JS
+        override protected function setClassName(value:String):void
+        {
+            classSelectorList.addNames(value);
+        }
 		
 		private var _text:String = "";
 
@@ -140,7 +150,7 @@ package org.apache.royale.jewel.itemRenderers
             COMPILE::JS
             {
                 //element.className = "jewel item selected";
-                toggleStyle(this, "selected", selected);
+				classSelectorList.toggle("selected", selected);
             }
 		}
 

-- 
To stop receiving notification emails like this one, please contact
carlosrovira@apache.org.

Mime
View raw message