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

    Interface ChangeDispatcher

    interface ChangeDispatcher {
        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;
        observe(): void;
        off(type: string, listener: Function): this;
        on(type: string, listener: Function): this;
        one(type: string, listener: Function): this;
        register(obj: object): this;
        register(key: string, defaultValue: any): this;
        removeEventListener(type: string, listener: Function): this;
        unobserve(): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Parameters

      • obj: object

      Returns this

    • Parameters

      • key: string
      • defaultValue: any

      Returns this