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

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


The following commit(s) were added to refs/heads/feature/jewel-snackbar by this 
push:
     new e8c4bd0  better use StyleUIBase methods
e8c4bd0 is described below

commit e8c4bd069ad24aeed15dead49d520d2a9d58eac1
Author: Carlos Rovira <[email protected]>
AuthorDate: Mon Sep 10 12:32:22 2018 +0200

    better use StyleUIBase methods
---
 .../Jewel/src/main/royale/org/apache/royale/jewel/Snackbar.as  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Snackbar.as 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Snackbar.as
index 95c460b..2197f69 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Snackbar.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/Snackbar.as
@@ -84,18 +84,18 @@ package org.apache.royale.jewel
                }
 
                public function set emphasis(value:String):void
-               {
-                       if (_emphasis != value)
+        {
+            if (_emphasis != value)
             {
                 if(_emphasis)
                 {
-                    classSelectorList.toggle(_emphasis, false);
+                    removeClass(_emphasis);
                 }
                 _emphasis = value;
 
-                classSelectorList.toggle(_emphasis, value);
+                addClass(_emphasis);
             }
-               }
+        }
 
                /**
                 *  The number of milliseconds to show the Snackbar.

Reply via email to