You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pu...@apache.org on 2019/11/06 06:43:21 UTC
[royale-asjs] branch develop updated: Update
RadioButtonMouseController.as
This is an automated email from the ASF dual-hosted git repository.
pushminakazi 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 391ae02 Update RadioButtonMouseController.as
new 25bed13 Merge pull request #548 from alinakazi/patch-2
391ae02 is described below
commit 391ae02762323bb4bba16c88222066b1ef888f4b
Author: alinakazi <AL...@GMAIL.COM>
AuthorDate: Tue Nov 5 22:36:13 2019 -0800
Update RadioButtonMouseController.as
fix for TypeError cannot read property 'numRadioButtons' of undefined
---
.../royale/mx/controls/beads/controllers/RadioButtonMouseController.as | 2 ++
1 file changed, 2 insertions(+)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/controllers/RadioButtonMouseController.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/controllers/RadioButtonMouseController.as
index 80fd39e..e533ad1 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/controllers/RadioButtonMouseController.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/beads/controllers/RadioButtonMouseController.as
@@ -62,11 +62,13 @@ import mx.controls.RadioButtonGroup;
{
radioButton.selected = true;
}
+ if(group != null)
group.dispatchEvent(itemClickEvent);
}
private function getRadioIndex(radioButton:RadioButton, group:RadioButtonGroup):int
{
+ if(group != null)
for (var i:int = 0; i < group.numRadioButtons; i++)
{
if (group.getRadioButtonAt(i) == radioButton)