You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/12/19 09:37:53 UTC
[royale-asjs] branch develop updated: styleduibase: fix RTE when
trying to add an empty class selector
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 ff1c4e0 styleduibase: fix RTE when trying to add an empty class selector
ff1c4e0 is described below
commit ff1c4e00d2917eec5a4bba47f752b05413590ce4
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Thu Dec 19 10:37:41 2019 +0100
styleduibase: fix RTE when trying to add an empty class selector
---
.../Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as
index 3c6604f..e644da7 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/StyledUIBase.as
@@ -73,7 +73,8 @@ package org.apache.royale.core
{
COMPILE::JS
{
- classSelectorList.add(name);
+ if(name != "" && name != null)
+ classSelectorList.add(name);
}
}