title: Backbone - Object render has no method 'apply'
body: <p>I am getting the error:</p>
  
  <blockquote>
    <p>object render has no method apply for the below code.</p>
  </blockquote>
  
  <p>What can be the reason ?
  The html page doesnt contain any code except the link for the javascript.<br>
  what should I do to remove the error ?</p>
  
  <pre><code>(function($) {
  
      window.Book = Backbone.Model.extend({});
  
      window.Library = Backbone.Collection.extend({
  
          model: Book
  
      }); // end of Collection
      window.LibraryView = Backbone.View.extend({
  
          el: $('body'),
  
          events: {
              'click button#btn_add': 'btn_add'
  
          },
  
          initialize: function() {
              $(this.el).append("View initialized");
              _.bindAll(this, 'render', 'btn_add');
              this.collections = new Library();
              this.collections.bind('add', 'render', this);
              this.startingDisplay();
  
          },
          startingDisplay: function() {
              $(this.el).append("&lt;input type='text' id='t1' /&gt;&lt;button id='btn_add'&gt;Add&lt;/button&gt;");
  
          },
  
          btn_add: function() {
  
              book = new Book({
                  title: "first"
              });
              alert("Name : " + book.get('title'));
              this.collections.add(book);
          },
  
          render: function() {
              alert("render called");
  
          },
  
      }); // end of LibraryView
      libraryview = new LibraryView();
  
  })(jQuery);​
  </code></pre>