# Event Methods

## Event.make

>     Event.make(name, details[, doc][, bubbles][, cancel]) -> event

- `name` (String) – The name of the event, visible in event.type.
- `details` (String) – A hash of custom event properties to be copied to the event object.
- `doc` (DOMElement) – is a supplied element to target the event on; if not supplied, defaults to current active document
- `bubbles` (Boolean) – Flag determining if the event's propogation behavior is to bubble; default is true.
- `cancel` (Boolean) – Flag determining if the event's default action may be prevented via the `preventDefault()` method; default is true

Utility routine used to create custom events.

In addition to creating an event with the given name, the event is also extended such that a `defaultPrevented` property is available on the event instance.

## Event.send

>     Event.send(element, name[, details][, bubbles][, cancel]) -> event

- `element` (DOMElement) – to dispatch the event on.
- `name` (String) – is the name of the event, visible in event.type.
- `details` (String) – is a hash of custom event properties to be copied to the event object.
- `bubbles` (Boolean) – flag determining if the event's propogation behavior is to bubble; default is true
- `cancel` (Boolean) – flag determining if the event's default action may be prevented via the preventDefault( ) method; default is true

Like prototype's `element.fire()`, except that the event type is actually as specified (instead of always `dataavailable`), and the specified details are placed in the `Event` object directly (instead of a `memo` sub-object).

## Event.stop

>     Event.stop(event) -> undefined

- `event` (DOMEvent) – Event object that should be stopped

Stops the event from propagating and prevents the default action.