Add some additional features to RB.CollectionView.
Review Request #7837 — Created Dec. 28, 2015 and submitted
This change adds a few new things to
RB.CollectionView
:
- The view will properly respond when the collection is reset.
- The view will reorder DOM elements for sorted collections.
- TheitemViewType
can be passed in as an option at construction time, rather
than requiringCollectionView
to be extended.
- A newitemViewOptions
member allows options to be plumbed through to the
individual item views.
Used these features in another change (in Power Pack).
-
Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/collectionView.js Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/collectionView.js