title: Backbone.js listenTo window resize throwing [object Object] has no method 'apply' error
body: <p><strong>Problem:</strong></p>
  
  <p>I'm trying to attach a resize event to the window from a view using the new listenTo() method in Backbone.js.  The event seems to bind to the window, however, when the window is actually resied the following error is thrown:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Object [object Object] has no method 'apply' 
    jquery.js:2 p.event.dispatch
    jquery.js:2 p.event.add.g.handle.h</p>
  </blockquote>
  
  <p><strong>Here is the code that attaches the event to the view:</strong></p>
  
  <pre><code>this.listenTo($(window),"resize", this.resizeContext, this));
  </code></pre>
  
  <p><strong>Here is the resizeContext function:</strong></p>
  
  <pre><code>  resizeContext: function(event) {
  
              console.log("resizing context for "+this.id);
  
              this.setHeight();
  
              // trigger resize event (use event bus)
              this.options.vent.trigger("resize", event);
  
          }
  </code></pre>
  
  <p><strong>Note:</strong> using the standard <code>$(window).on("resize",this.resizeContext)</code> attaches the event and runs as it should.  I am trying to take advantage of the new <code>stopListening()</code> feature that is added to <code>view.remove();</code></p>