-
Notifications
You must be signed in to change notification settings - Fork 10
コントローラ初期化処理で異常が起きた時の動作の整理 #367
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
Comments
を ↓ のように変更します。
|
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 20, 2014
内部からエラーのためにdisposeされた場合はnullifyしないようにしました。 controllerManagerをeventDispatcherのmixinにして、コントローラがエラーで死んでdispose処理が終わった後にcontrollerManagerから"emergency"イベントをあげるようにしました。 子コントローラでdisposeを呼んだ時に投げられるエラーのエラーメッセージと投げるタイミングをdispose()を呼んですぐのタイミングに修正。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 20, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 20, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 20, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 23, 2014
ライフサイクルイベントでdispose()を呼んだ時に__unbindや__disposeで起きたエラーが飲まれていたので修正しました。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 23, 2014
emergencyイベントをlifecycleerrorイベントにリネームしました。 __disposeで例外が起きた時に、dispose()の返すプロミスがrejectされるようにし、lifecycleerrorイベントが上がるようにしました。 failReason→rejectReasonにリネームしました。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 24, 2014
hifive#334 h5controllerunboundイベントは、管理対象に追加されたコントローラについてのみ上がるようにしました。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 24, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 24, 2014
コントローラのテンプレートロードやライフサイクルの返すプロミスの失敗など、非同期処理による失敗が原因でdisposeControllerされるときに、nullifyしないようにしました。 テストケースをそれに合わせて修正しました。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 24, 2014
エラー時、reject時にもviewのclearをするようにしました。 エラー時、reject時にdisposeの返すpromiseについてrejectするようにしました。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 24, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 26, 2014
unbindされたコントローラはライフサイクルの実行を継続しないようにしました。 unbind時にまだresolveもrejectもされていないライフサイクルプロミスがあればrejectするようにしました。 (今まではdisposeでやっていました) h5controllerunboundイベントは、h5controllerboundが上がった後(__ready含む__ready以降==isPostInitがtrue)の時に上げるようにしました。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 26, 2014
unbind済みのコントローラのメソッドを呼ばないように修正しました。
|
This was referenced Jun 26, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 26, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 27, 2014
__disposeの返すpromiseがrejectされた場合はdispose()の返すプロミスもrejectします。 nullifyは行わず、lifecycleerrorイベントが上がります。
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 27, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 27, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 27, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 27, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 27, 2014
fukudayasuo
pushed a commit
to hifive-labs/hifivemain
that referenced
this issue
Jun 27, 2014
_h5errorcodeに追加したエラーコードを記述
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
コントローラのライフサイクルで例外が起きた時や、ライフサイクルイベントがrejectされるプロミスを返した時、ルートエレメントが無い場合、テンプレートが無い場合など、コントローラの初期化に失敗する場合の動作について、以下のような挙動になるようにします。
The text was updated successfully, but these errors were encountered: