documentcloud/backbone — pull request #2200 by nishp1 (2013-01-26 20:09:52+00:00)
Title: Add support for async event handlers

When child views are being handled by parent views, I find my self often needing to fire 'before*' events which may be handled asynchronously. It would nice if backbone supported async handlers(deferreds) to remove other custom events('ok-to-remove', 'not-ok-to-remove', required to solve this problem. End result would be something like:

```javascript
var View = Backbone.View.extend({
remove: function() {
var me = this;
this.trigger('beforeremove').then(function() {
me.remove();
})
}
});

```