Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updating comments for docs

  • Loading branch information...
commit 4728120dced24f8b83d84e38311e1eba9979b3e0 1 parent ff4c8ad
Jack Carrig jcarrig authored
Showing with 4 additions and 8 deletions.
  1. +3 −1 src/js/collection_view.js
  2. +1 −7 src/js/list.js
4 src/js/collection_view.js
View
@@ -4,7 +4,9 @@
// The Backbone.Collection instance the view is bound to
model : null,
- // The Backbone.View class responsible for rendering a single item in the collection
+ // The Backbone.View class responsible for rendering a single item
+ // in the collection. For simple use cases, you can pass a String instead
+ // which will be interpreted as the property of the model to display.
itemView : null,
// Options to pass into the Backbone.View responsible for rendering the single item
8 src/js/list.js
View
@@ -1,12 +1,6 @@
(function(){
window.Backbone.UI.List = Backbone.UI.CollectionView.extend({
- options : {
- // A Backbone.View implementation describing how to render a particular
- // item in the collection. For simple use cases, you can pass a String
- // instead which will be interpreted as the property of the model to display.
- itemView : null
- },
-
+
initialize : function() {
Backbone.UI.CollectionView.prototype.initialize.call(this, arguments);
$(this.el).addClass('list');
Please sign in to comment.
Something went wrong with that request. Please try again.