royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs] branch develop updated: Fixes #35
Date Wed, 01 Nov 2017 22:53:01 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs 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 6ef2b0c  Fixes #35
6ef2b0c is described below

commit 6ef2b0c944db21b8e11f188020213c0affa28b2d
Author: Harbs <harbs@in-tools.com>
AuthorDate: Thu Nov 2 00:52:56 2017 +0200

    Fixes #35
---
 .../royale/org/apache/royale/html/RadioButton.as   | 34 ++++++++++++++++++----
 1 file changed, 28 insertions(+), 6 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/RadioButton.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/RadioButton.as
index f29e8a0..b0c51fb 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/RadioButton.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/RadioButton.as
@@ -267,10 +267,16 @@ package org.apache.royale.html
             icon.element.id = value;
         }
 
+		/**
+		 * @royaleignorecoercion HTMLInputElement
+		 */
         public function get groupName():String
         {
             return (icon.element as HTMLInputElement).name as String;
         }
+		/**
+		 * @royaleignorecoercion HTMLInputElement
+		 */
         public function set groupName(value:String):void
         {
             (icon.element as HTMLInputElement).name = value;
@@ -285,25 +291,40 @@ package org.apache.royale.html
             textNode.nodeValue = value;
         }
 
-        /** @export */
+		/**
+		 * @royaleignorecoercion HTMLInputElement
+		 * @export
+		 */
         public function get selected():Boolean
         {
             return (icon.element as HTMLInputElement).checked;
         }
+		/**
+		 * @royaleignorecoercion HTMLInputElement
+		 */
         public function set selected(value:Boolean):void
         {
             (icon.element as HTMLInputElement).checked = value;
         }
 
-        public function get value():Object
+		/**
+		 * @royaleignorecoercion HTMLInputElement
+		 */
+        public function get value():String
         {
             return (icon.element as HTMLInputElement).value;
         }
-        public function set value(v:Object):void
+		/**
+		 * @royaleignorecoercion HTMLInputElement
+		 */
+        public function set value(v:String):void
         {
-            (icon.element as HTMLInputElement).value = v as String;
+            (icon.element as HTMLInputElement).value = "" + v;
         }
 
+		/**
+		 * @royaleignorecoercion HTMLInputElement
+		 */
         public function get selectedValue():Object
         {
             var buttons:NodeList;
@@ -311,7 +332,7 @@ package org.apache.royale.html
             var i:int;
             var n:int;
 
-            groupName = (icon.element as HTMLInputElement).name as String;
+            groupName = (icon.element as HTMLInputElement).name;
             buttons = document.getElementsByName(groupName);
             n = buttons.length;
 
@@ -325,6 +346,7 @@ package org.apache.royale.html
 
         /**
          * @royaleignorecoercion Array
+		 * @royaleignorecoercion HTMLInputElement
          */
         public function set selectedValue(value:Object):void
         {
@@ -333,7 +355,7 @@ package org.apache.royale.html
             var i:int;
             var n:int;
 
-            groupName = (icon.element as HTMLInputElement).name as String;
+            groupName = (icon.element as HTMLInputElement).name;
             buttons = document.getElementsByName(groupName);
             n = buttons.length;
             for (i = 0; i < n; i++) {

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <commits@royale.apache.org>'].

Mime
View raw message