Interface IEmitter

Hierarchy

Index

Methods

Methods

public behavior(eventName: string, initialValue: any)

Parameters

  • eventName: string
  • initialValue: any

public decrementSubscriptionCount(eventName: string): number

Parameters

  • eventName: string

Returns

number

public emit(eventName: string, args?: Array<any>)

Parameters

  • eventName: string
  • args?: Array<any> optional

public getSubscriptionCount(eventName: string): number

Parameters

  • eventName: string

Returns

number

public hasSubscriptions(eventName: string): boolean

Parameters

  • eventName: string

Returns

boolean

public incrementSubscriptionCount(eventName: string): number

Parameters

  • eventName: string

Returns

number

public off(eventNames: string, handler: Function)

Parameters

  • eventNames: string
  • handler: Function

public on(eventNames: string, handler: Function): any

Parameters

  • eventNames: string
  • handler: Function

Returns

any

public once(eventName: string, handler: Function): any

Parameters

  • eventName: string
  • handler: Function

Returns

any

public pauseEvents(eventNames: string)

Parameters

  • eventNames: string

public resumeEvents(eventNames: string)

Parameters

  • eventNames: string

public signal(eventName: string)

Parameters

  • eventName: string