I believe this is as designed and how it has always worked. If you
don't have that behavior, how would you be able to respond to
selection transitioning to off? The two names were for backwards
compatibility when we added one to be similar to HTML or something.
They were meant to have identical behavior.
Sarah
On Aug 11, 2009, at 7:27 PM, [email protected] wrote:
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