LoginSignup
7
7

More than 5 years have passed since last update.

Backboneアプリケーションコードレビューガイド

Posted at

単純にチェックできるやつだけ。

イベントのAPI

onoffと言った、古いAPIを使っていないか?特別な理由がない限り、listenTostopListeningを使う。

サブビューの管理

Viewの中でViewのインスタンスを作ったら、removeの中でremoveすること。

適切なライブラリを使えば考える必要がない。

removeの実装

  • superを忘れていないか
  • stopListeningは必要ないことが多い

renderの返値

thisを返すこと。

イベントハンドラ

サブビューのイベントを処理してはいけない。

7
7
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7