documentcloud/backbone — pull request #1734 by antipin (2012-10-13 20:11:28+00:00)
Title: "beforeRemove" event for View to be able to remove sub views

djn nfrjq dfhb

**Example:**
```javascript
Backbone.View.extend({

subView: null,

initialize: function() {

var class_subView = Backbone.View.extend();
this.subViews = new class_subView();

this.on("beforeRemove", this.beforeRemove, this);
},

beforeRemove: function() {
subViews.remove();
}

});```