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 d4bcd73  remove radiobutton dead code
d4bcd73 is described below

commit d4bcd7382c2c674c714bce326eca42b4148408d0
Author: Carlos Rovira <[email protected]>
AuthorDate: Sun Sep 9 21:36:30 2018 +0200

    remove radiobutton dead code
---
 .../src/main/royale/org/apache/royale/jewel/RadioButton.as    | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/RadioButton.as
 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/RadioButton.as
index e32c58e..efb8dc0 100644
--- 
a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/RadioButton.as
+++ 
b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/RadioButton.as
@@ -389,16 +389,7 @@ package org.apache.royale.jewel
         {
             if(icon.checked == value)
                 return;
-            var instance:Object = element['MaterialRadio'];
-            if(instance)
-            {
-                if(value)
-                    instance["check"]();
-                else
-                    instance["uncheck"]();
-            }
-            else
-                icon.checked = value;
+            icon.checked = value;
             dispatchEvent(new Event(Event.CHANGE));
         }
         

Reply via email to