This is an automated email from the ASF dual-hosted git repository. aharui 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 11d087e radiobutton wasn't autogenerating RadioButtonGroups correctly. Should fix #711 11d087e is described below commit 11d087ea081cd415361810058aa6cb2098ca1c97 Author: Alex Harui <aha...@apache.org> AuthorDate: Thu Feb 13 09:55:30 2020 -0800 radiobutton wasn't autogenerating RadioButtonGroups correctly. Should fix #711 --- .../SparkRoyale/src/main/royale/spark/components/RadioButton.as | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as index 26a917e..71f685d 100644 --- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as +++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/RadioButton.as @@ -433,6 +433,13 @@ public class RadioButton extends ToggleButtonBase try { g = RadioButtonGroup(mxmlDocument[groupName]); + COMPILE::JS + { + // in JS, the coercion above does not throw an exception + // if the value is undefined. Maybe it should? + if (g == null) + throw new Error(); + } } catch(e:Error) {