adaptors/backbone/base_collection.js
function(model, options) {
    if (ComponentWidget.isComponent(model) && model.model && model.exposedEvents) {
      var events = model.exposedEvents;
      if (events === true) {
        model.model.off('all', this._onModelEvent, this);
      } else if (events.length) {
        for (let i = 0; i < events.length; i++) {
          this.stopListening(model.model, events[i]);
        }
      }
    }
    Backbone.Collection.prototype._removeReference.call(this, model, options);
  }
function(model, options) {
    if (ComponentWidget.isComponent(model) && model.model && model.exposedEvents) {
      var events = model.exposedEvents;
      if (events === true) {
        model.model.off('all', this._onModelEvent, this);
      } else if (events.length) {
        for (let i = 0; i < events.length; i++) {
          this.stopListening(model.model, events[i]);
        }
      }
    }
    Backbone.Collection.prototype._removeReference.call(this, model, options);
  }
function ( model , options ) { if ( ComponentWidget . isComponent ( model ) && model . model && model . exposedEvents ) { var events = model . exposedEvents ; if ( events === true ) { model . model . off ( 'all' , this . _onModelEvent , this ) ; } else if ( events . length ) { for ( let i = 0 ; i < events . length ; i ++ ) { this . stopListening ( model . model , events [ i ] ) ; } } } Backbone . Collection . prototype . _removeReference . call ( this , model , options ) ; }
Unbinds events when a model is removed from a collection

@param {Object} model
@param {Object} options
Unbinds events when a model is removed from a collection