You can use something like my CD3.Behavior lib (

CD3.Behaviors({'#element:click': yourClickHandler });
// -- or --
CD3.Behaviors('#element', function(){
  this.observe('click', yourClickHandler);
// -- or ... CD3.Behaviors have really large set of possible uses

Or ... use Mislav's when() function
You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to