I don't think it would change the API as much as add complexity to the
underlying code.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Andriy Panas
Sent: Tuesday, May 06, 2008 2:40 PM
To: [email protected]
Subject: Re: [flexcoders] Preventing default onClick-behaviour in
List-Component

 

Hi Alex,

What are API design considerations behind of making most of
mx.events.ListEvent events not cancelable?

I just wanted to use event.preventDefault in my custom event handler
for ListEvent.ITEM_DOUBLE_CLICK event, but I could not.

> That is because those events are not cancelable. Are you just trying
to
> reset what the selectedIndex was? I'd just store the last good one
> somewhere.
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED] <mailto:a.panas%40gmail.com> 

 

Reply via email to