Home Reference Source
import EventDispatcher from 'three-nebula/src/events/EventDispatcher.js'
public class | source

EventDispatcher

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public set
public get
Private Members
private

Method Summary

Public Methods
public

addEventListener(type: *, listener: *): *

public

dispatchEvent(eventName: *, eventTarget: *): *

public

hasEventListener(type: *): *

public
public

removeEventListener(type: *, listener: *)

Public Constructors

public constructor() source

Public Members

public set listeners source

public get listeners: * source

Private Members

private _listeners: * source

Public Methods

public addEventListener(type: *, listener: *): * source

Params:

NameTypeAttributeDescription
type *
listener *

Return:

*

public dispatchEvent(eventName: *, eventTarget: *): * source

Params:

NameTypeAttributeDescription
eventName *
eventTarget *

Return:

*

public hasEventListener(type: *): * source

Params:

NameTypeAttributeDescription
type *

Return:

*

public removeAllEventListeners(type: *) source

Params:

NameTypeAttributeDescription
type *

public removeEventListener(type: *, listener: *) source

Params:

NameTypeAttributeDescription
type *
listener *