[Laszlo-checkins] r13176 - openlaszlo/trunk/lps/components/lz

max@openlaszlo.org max at openlaszlo.org
Thu Mar 5 05:25:56 PST 2009


Author: max
Date: 2009-03-05 05:25:53 -0800 (Thu, 05 Mar 2009)
New Revision: 13176

Modified:
   openlaszlo/trunk/lps/components/lz/radio.lzx
Log:
+ prevent warning when accessibility is not set

Modified: openlaszlo/trunk/lps/components/lz/radio.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/radio.lzx	2009-03-05 13:06:34 UTC (rev 13175)
+++ openlaszlo/trunk/lps/components/lz/radio.lzx	2009-03-05 13:25:53 UTC (rev 13176)
@@ -128,7 +128,7 @@
             <![CDATA[
             super.init();
 
-            if (canvas.accessible) {
+            if (canvas['accessible']) {
                 this.accessible.setAttribute('applied', true);
                 var mc = this.getMCRef();
                 mc._accImpl = {};
@@ -146,10 +146,10 @@
 
                 mc._accImpl.get_accState = function() {
                     if (this.master.selected) {
-                        // STATE_SYSTEM_CHECKED && STATE_SYSTEM_FOCUSED && STATE_SYSTEM_FOCUSABLE
+                        // STATE_SYSTEM_CHECKED | STATE_SYSTEM_FOCUSED | STATE_SYSTEM_FOCUSABLE
                         return 0x00100014
                     } else {
-                        // STATE_SYSTEM_FOCUSABLE && STATE_SYSTEM_FOCUSED
+                        // STATE_SYSTEM_FOCUSABLE | STATE_SYSTEM_FOCUSED
                         return 0x00100004
                     }
                 }
@@ -240,7 +240,7 @@
         <method name="setHilite" args="dohilite">
             _title.setAttribute('fgcolor',
                 dohilite ? style.texthilitecolor : style.textcolor);
-            if (canvas.accessible) this.updateFocus();
+            if (canvas['accessible']) this.updateFocus();
         </method>
 
         <!-- FIXME: [hqm 2006-09] LPP-2244 This used to be y="$once{classroot.text_y}"



More information about the Laszlo-checkins mailing list