why is typing "return false" so much work?

On Wed, Apr 22, 2009 at 9:01 AM, Sanford Whiteman [Mobile] (via Nabble) <
[email protected]<ml-user%[email protected]>
> wrote:

>
> > I know how to do it, but I'm asking if there's a built-in way to do
> > this:
>
> > addEvent('click', this.doSomething.returnFalse(this));
>
> addEvent('click',doSomething).addEvent('click',$lambda(false));
>
> The  default  behavior  will be canceled even if doSomething() returns
> true.  This  conforms with your original requirement to deaden default
> hrefs  on  links  without custom methods and without changing anything
> within  existing/library  methods.  I  don't know if your requirements
> have expanded from there.
>
> --Sandy
>
>
>
> ------------------------------
>  View message @
> http://n2.nabble.com/-Moo--Return-false-function-tp2669929p2677073.html
> To start a new topic under MooTools Users, email
> [email protected]<ml-node%[email protected]>
> To unsubscribe from MooTools Users, click here< (link removed) >.
>
>
>


-----
The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com 
Clientcide:  http://www.clientcide.com www.clientcide.com 
-- 
View this message in context: 
http://n2.nabble.com/-Moo--Return-false-function-tp2669929p2677114.html
Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to