I've been known to do it like this:

var reusecb;
document.id( 'myInput' ).addEvents ({
    blur: reusecb = function(e){ alert( 'event: '+e.type ); }    
    , mouseout: reusecb
});

Obvs. it's also just saving the reference to the function obj but
helps me see the function definition as an event listener.

-- S.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mootools-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to