Class EventDispatcher

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): EventDispatcher

Returns

EventDispatcher

Properties

private _listeners: any

Methods

public addEventListener(typeStr: string, listenerFunc: Function)

Parameters

  • typeStr: string
  • listenerFunc: Function

public dispatchEvent(evt: LeapEvent)

Parameters

public hasEventListener(type: string, listener: Function): boolean

Parameters

  • type: string
  • listener: Function

Returns

boolean

public removeEventListener(typeStr: string, listenerFunc: Function)

Parameters

  • typeStr: string
  • listenerFunc: Function