title: How do I pass a view to another Backbone view?
body: <p>I am trying to create a Base table class in Backbone.  For each subclass the row could have a different look.  I want to pass in the View of the row.  I am trying to add it as an attribute that is set in the child class, but I keep getting and error <code>TypeError: Cannot read property '_listenerId' of undefined</code>.  Here is my parent class:</p>
  
  <pre><code>  var BaseTableView = BaseView.extend({
      template: null,
      rowView: null,
      initialize: function() {
          ...
      }
    });
  </code></pre>
  
  <p>Here is the child class where I set the row view up:</p>
  
  <pre><code>  var PeopleCollectionView = BaseTableView.extend({
  
      initialize: function() {
        this.collection = new PeopleCollection();
        this.template = peopleTemplate;
        this.itemView = PersonView;
        BaseTableView.prototype.initialize.apply(this, arguments);
      }
    });
  </code></pre>
  
  <p>When I go to use the PersonView in the super class, I use it like this:</p>
  
  <pre><code>var view = new this.rowView({
    model: item
  });
  </code></pre>
  
  <p>That is when I get the above stated error <code>TypeError: Cannot read property '_listenerId' of undefined</code>.  How can I fix this, or even if I should set up my hierarchy different, how should that be done?  Thanks for the help.</p>