Catching remove event on View in Backbone js

backbone-events, backbone-views, backbone.js

Solution

You can try to override the `View.remove` method::

Backbone.View.extend({
    remove: function(){
        // Your processing code here

        Backbone.View.prototype.remove.apply(this, arguments);
    };
});

Problem

Is there any way to listen to remove/destroy event on the Backbone View.? I want to do some thing like as below: ``` $(myBackboneView).on('remove', function () { // do some processing }); ``` or ``` $(myBackboneView).on('destroy', function () { // do some processing }); ``` Thank you in advance. :)

Original source