extend
1.6
Event.extend(event)
Extends event
with all of the methods contained in Event.Methods
.
Note that all events inside handlers that were registered using Event.observe
or Element#observe
will be extended automatically.
You need only call Event.extend
manually if you register a handler a different way (e.g., the onclick
attribute). We really can’t encourage that sort of thing, though.