Class: PubSub

PubSub()

PubSubクラス(カスタムイベント管理)

Constructor

new PubSub()

Properties:
Name Type Description
fn.context object 実行コンテキスト
fn.callback object コールバック関数
fn.model class modelクラス
fn.view class viewクラス
fn.controller class controllerクラス
fn.formcontroll object フォームコントロール
Source:

Extends

Methods

(static) publish(event, arg)

イベント名でコールバック関数を実行する
Parameters:
Name Type Description
event event イベント情報
arg object コールバック関数引き渡し情報
Source:
Returns:
コールバック関数実行結果

(static) subscribe(pubsubEvent)

イベント名でコールバック関数名を格納する
Parameters:
Name Type Description
pubsubEvent object イベント設定情報
Source:

(static) unsubscribe(event)

イベントを削除する
Parameters:
Name Type Description
event event イベント情報
Source: