[Laszlo-dev] Problem with baselistitem (and derived objects like radiobutton)

promanik@laszlosystems.com promanik at laszlosystems.com
Tue Aug 11 19:27:56 PDT 2009


Hi Max,

I'd like your thoughts on this. I think there is a problem in 
baselistitem. If setSelected() is called with false, the onselect and 
onselected events are generated.

         <method name="setSelected" args="s">
             <![CDATA[
                 this.selected = s;
                 if (this.onselect.ready) this.onselect.sendEvent(this);
                 if (this.onselected.ready) 
this.onselected.sendEvent(this);
             ]]>
         </method>


According to the docs:

onselect  Event sent when the user makes a selection.
onselected  Event sent when this item is selected.


I don't think either of these should be generated if this.selected is 
false and this might explain some of the strange behavior in LPP-7594. I 
will play with this tomorrow.

Thanks!

Phil


More information about the Laszlo-dev mailing list