title: Overwriting events hash for inherited Backbone.js View
body: <p>I have a Backbone View for a general element that specific elements will be inheriting from.  I have event handling logic that needs to be applied to all elements, and event handling logic that is specific to child-type elements.  I'm having trouble because a child View has its own callback for an event that is also handled by the parent View, and so when I try to use the events hash in both, either the child or parent callback is never called.  Let me illustrate with some code:</p>
  
  <pre><code>var ElementView = Backbone.View.extend({
    events: {
      "mouseup": "upHandler",
      "mousedown": "downHandler",
      "mousemove": "moveHandler"
    },
  
    initialize: function() {
      // add events from child
      if (this.events)
        this.events = _.defaults(this.events, ElementView.prototype.events);
  
      this.delegateEvents(this.events);
    }
  });
  
  var StrokeView = ElementView.extend({
    events: {
      "mousemove": "strokeMoveHandler"
    }
  });
  </code></pre>
  
  <p>How would I solve this in an extensible way, especially if I will later have another level of inheritance?</p>