-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
コントローラで動的なイベントハンドラのバインド・アンバインドを可能にする #354
Comments
コントローラにon(), off()メソッドを追加する。
|
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 19, 2014
on,offの基本的な動作を確認するテストケースを追加しました。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 26, 2014
createBindObjectsは静的バインドの場合も第3引数にイベントハンドラを取るよう、動的の場合と共通化しました。 bindRequested → isBindRequested、global → isGlobal に変数名を修正。 unbindByBindObjectで、unbindHandlerListからbindObjを取り除くようにしました。 (取り除かない場合は第3引数にtrue指定) createEventHandlerInfo内の変数direct→isSelector (真偽は反対)にしました。 isJQueryObjectを先頭でキャッシュしました。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 30, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jul 1, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jul 1, 2014
unbindHandlerList→boundHandlersに変更(バインド中のハンドラをもつ配列なので。)
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jul 1, 2014
viewのメソッドは全て、ルートコントローラが設定されていない(またはview.__controllerが無い)時にエラーになるようにしました。 テストケース追加しました。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
現在はコントローラに記述されたハンドラを初期化時にバインドし、unbind()またはdispose()によってアンバインドしている。
しかし、場合によってはコントローラの動作中に動的にイベントハンドラをバインドorアンバインドしたいことがあるので、これを可能にする。
The text was updated successfully, but these errors were encountered: