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

gregdove 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 1219425  Workaround for a compiler issue with calling a super setter.
1219425 is described below

commit 1219425faa090aacf05fe940e88f6c68d93d206d
Author: greg-dove <[email protected]>
AuthorDate: Thu Feb 3 11:47:20 2022 +1300

    Workaround for a compiler issue with calling a super setter.
---
 .../MXRoyale/src/main/royale/mx/controls/CheckBox.as         | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/CheckBox.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/CheckBox.as
index ff70c50..6d9d708 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/CheckBox.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/CheckBox.as
@@ -235,16 +235,24 @@ public class CheckBox extends Button implements IStrand, 
ISelectable
                _label.childNodes.item(1).nodeValue = value;
        }
 
+
+       /**
+        * @royaleignorecoercion HTMLInputElement
+        */
        [Bindable("change")]
        override public function get selected():Boolean
        {
                return (_icon.element as HTMLInputElement).checked;
        }
 
+       /**
+        * @royaleignorecoercion HTMLInputElement
+        */
        override public function set selected(value:Boolean):void
        {
-          //this is strange, but the base class needs to have its private flag 
set also
-          (_icon.element as HTMLInputElement).checked = super.selected = value;
+          //this is unusual, but the base class needs to have its private flag 
set also, and cannot (currently) do that inline (below) because of a transpiler 
issue.
+               super.selected = value;
+          (_icon.element as HTMLInputElement).checked = /*doing this inline 
failed to work (transpiler issues) : super.selected =*/ value;
        }
        
        //----------------------------------

Reply via email to