#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# EventFacade Class

Defined in: `event-custom/js/event-facade.js:27`
Module: event-custom-complex
Parent Module: event-custom

Wraps and protects a custom event for use when emitFacade is set to true. Requires the event-custom-complex module

- Index
- Methods
- Properties

## Item Index

### Methods

- halt
- preventDefault
- stopImmediatePropagation
- stopPropagation

### Properties

- _type
- currentTarget
- details
- relatedTarget
- target
- type

## Methods

### `halt`

(

- `immediate`

)

Defined in `event-custom/js/event-facade.js:121`

Stops the event propagation and prevents the default event behavior.

#### Parameters:

- `immediate` Boolean

  if true additional listeners on the current target will not be executed

### `preventDefault`

()

Defined in `event-custom/js/event-facade.js:112`

Prevents the event's default behavior

### `stopImmediatePropagation`

()

Defined in `event-custom/js/event-facade.js:101`

Stops the propagation to the next bubble target and prevents any additional listeners from being exectued on the current target.

### `stopPropagation`

()

Defined in `event-custom/js/event-facade.js:92`

Stops the propagation to the next bubble target

## Properties

### `_type`

String private

Defined in `event-custom/js/event-facade.js:57`

The real event type

### `currentTarget`

Node

Defined in `event-custom/js/event-facade.js:74`

Node reference for the element that the listener was attached to.

### `details`

Array

Defined in `event-custom/js/event-facade.js:43`

The arguments passed to fire

### `relatedTarget`

Node

Defined in `event-custom/js/event-facade.js:81`

Node reference to the relatedTarget

### `target`

Node

Defined in `event-custom/js/event-facade.js:67`

Node reference for the targeted eventtarget

### `type`

String

Defined in `event-custom/js/event-facade.js:50`

The event type, this can be overridden by the fire() payload