Class: Eventer
Hierarchy
Eventer
↳
Animate
Implements
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new Eventer(): Eventer
Returns
Properties
innerId
• Readonly
innerId: number
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:9
__captureMap
• Optional
__captureMap: IEventListenerMap
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:11
__bubbleMap
• Optional
__bubbleMap: IEventListenerMap
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:13
syncEventer
• Optional
syncEventer: IEventer
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:15
Accessors
event
• set
event(map
): void
Parameters
Name | Type |
---|---|
map | IEventMap |
Returns
void
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:17
Methods
on
▸ on(type
, listener?
, options?
): void
Parameters
Name | Type |
---|---|
type | string | string [] | IEventMap |
listener? | IFunction |
options? | IEventOption |
Returns
void
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:20
off
▸ off(type?
, listener?
, options?
): void
Parameters
Name | Type |
---|---|
type? | string | string [] |
listener? | IFunction |
options? | IEventOption |
Returns
void
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:57
on_
▸ on_(type
, listener
, bind?
, options?
): IEventListenerId
Parameters
Name | Type |
---|---|
type | string | string [] |
listener | IFunction |
bind? | IObject |
options? | IEventOption |
Returns
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:100
off_
▸ off_(id
): void
Parameters
Name | Type |
---|---|
id | IEventListenerId | IEventListenerId [] |
Returns
void
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:106
once
▸ once(type
, listener
, capture?
): void
Parameters
Name | Type |
---|---|
type | string | string [] |
listener | IFunction |
capture? | boolean |
Returns
void
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:113
emit
▸ emit(type
, event?
, capture?
): void
Parameters
Name | Type |
---|---|
type | string |
event? | IObject | IEvent |
capture? | boolean |
Returns
void
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:117
emitEvent
▸ emitEvent(event
, capture?
): void
Parameters
Name | Type |
---|---|
event | IEvent |
capture? | boolean |
Returns
void
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:138
hasEvent
▸ hasEvent(type
, capture?
): boolean
Parameters
Name | Type |
---|---|
type | string |
capture? | boolean |
Returns
boolean
Implementation of
Defined in
leafer/packages/event/src/Eventer.ts:143
destroy
▸ destroy(): void
Returns
void