I am able to add new methods to the Event object and Event.Methods
object if necessary using Object.extend(Event, {methods...});, but
they do not appear on the event object that the browser fires.

Example (loaded after prototype.js):
Object.extend(Event.Methods, { function testMethod (evt) {} });
Object.extend(Event, Event.Methods);

<input type="text" onkeypress="event.testMethod();" />

The above code will fail in firefox as event doesn't have the
testMethod.

How can I get this to work well without changing the prototype.js code?


--~--~---------~--~----~------------~-------~--~----~
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