adaptors/backbone/base_collection.js
function(model, options) {
    Backbone.Collection.prototype._addReference.call(this, model, options);
    if (ComponentWidget.isComponent(model) && model.exposedEvents) {
      var events = model.exposedEvents;
      if (events === true) {
        model.model.on('all', this._onModelEvent, this);
      } else if (events.length) {
        for (let i = 0; i < events.length; i++) {
          this.bindExposedEvent(events[i], model);
        }
      }
    }
  }
function(model, options) {
    Backbone.Collection.prototype._addReference.call(this, model, options);
    if (ComponentWidget.isComponent(model) && model.exposedEvents) {
      var events = model.exposedEvents;
      if (events === true) {
        model.model.on('all', this._onModelEvent, this);
      } else if (events.length) {
        for (let i = 0; i < events.length; i++) {
          this.bindExposedEvent(events[i], model);
        }
      }
    }
  }
function ( model , options ) { Backbone . Collection . prototype . _addReference . call ( this , model , options ) ; if ( ComponentWidget . isComponent ( model ) && model . exposedEvents ) { var events = model . exposedEvents ; if ( events === true ) { model . model . on ( 'all' , this . _onModelEvent , this ) ; } else if ( events . length ) { for ( let i = 0 ; i < events . length ; i ++ ) { this . bindExposedEvent ( events [ i ] , model ) ; } } } }
Binds events when a model is added to a collection

@param {Object} model
@param {Object} options
Binds events when a model is added to a collection