You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pi...@apache.org on 2019/12/09 16:12:17 UTC
[royale-asjs] branch develop updated: Jewel Alert: Prevent from
displaying undefined if there is no message
This is an automated email from the ASF dual-hosted git repository.
piotrz 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 4ceb4bb Jewel Alert: Prevent from displaying undefined if there is no message
4ceb4bb is described below
commit 4ceb4bb47c3bca5b75caa0344a5824a9409cf3e0
Author: Piotr Zarzycki <pi...@gmail.com>
AuthorDate: Mon Dec 9 17:12:01 2019 +0100
Jewel Alert: Prevent from displaying undefined if there is no message
---
.../src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
index 7bd7d3f..af39803 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/AlertView.as
@@ -168,7 +168,7 @@ package org.apache.royale.jewel.beads.views
// Text
label = new Label();
label.multiline = true;
- label.html = alertModel.message;
+ label.html = alertModel.message ? alertModel.message : "";
content = new VGroup();
content.addClass("content");