phina.js.d.ts
    Preparing search index...

    Interface EventDispatcher

    interface EventDispatcher {
        addEventListener(type: string, listener: Function): this;
        clear(type: string): this;
        clearEventListener(type: string): this;
        dispatchEvent(e: { type: string }): this;
        dispatchEventByType(type: string, param: object): this;
        fire(e: { type: string }): this;
        flare(type: string, param?: object): this;
        has(type: string): boolean;
        hasEventListener(type: string): boolean;
        off(type: string, listener: Function): this;
        on(type: string, listener: Function): this;
        one(type: string, listener: Function): this;
        removeEventListener(type: string, listener: Function): this;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string

      Returns this

    • Parameters

      • type: string

      Returns this

    • Parameters

      • e: { type: string }

      Returns this

    • Parameters

      • type: string
      • param: object

      Returns this

    • Parameters

      • e: { type: string }

      Returns this

    • Parameters

      • type: string
      • Optionalparam: object

      Returns this

    • Parameters

      • type: string

      Returns boolean

    • Parameters

      • type: string

      Returns boolean

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this

    • Parameters

      • type: string
      • listener: Function

      Returns this