Skip to content
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

テンプレートが一つも登録されていないと、view.get等でエラーが起きない。 #230

Closed
tkashi opened this issue Aug 8, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@tkashi
Copy link

tkashi commented Aug 8, 2013

h5.core.view.get('testid')
のようなとき、testidを持つテンプレートが存在しないとエラーになるはずだが、

テンプレートが一つも登録されていない状態だと、エラーが発生しない。

fukudayasuo pushed a commit to hifive-labs/hifivemain that referenced this issue Aug 8, 2013
テストケースも修正しました。

登録されたテンプレート情報を持つオブジェクトに対して、$.isEmptyObject()で判定してtrueならnullを返す(例外を発生させない)ようになっていました。

テンプレート情報が空オブジェクトかどうかの判定は必要ないので、該当箇所を削除しました。
@ghost ghost assigned fukudayasuo Aug 8, 2013
@simdy simdy closed this as completed Aug 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants