Hey Richard,

Richard Quadling a écrit :
> Object.extend(Event, {
>  isRightClick: function(event) {
>     return (((event.which) && (event.which == 1)) ||
>             ((event.button) && (event.button == 2)));
>   },
>  isMiddleClick: function(event) {
>     return (((event.which) && (event.which == 1)) ||
>             ((event.button) && (event.button == 4)));
>   }
> });

Hang on, this has been a patch for a long time, and is currently sitting 
in the Events branch.  It will show up in 1.6 :-)

-- 
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to