examples/npm/output.js
function(models, options) {
      models  || (models = []);
      options || (options = {});
      this.each(this._removeReference);
      this._reset();
      this.add(models, {silent: true});
      if (!options.silent) this.trigger('reset', this, options);
      return this;
    }
function(models, options) {
      models  || (models = []);
      options || (options = {});
      this.each(this._removeReference);
      this._reset();
      this.add(models, {silent: true});
      if (!options.silent) this.trigger('reset', this, options);
      return this;
    }
function ( models , options ) { models || ( models = [ ] ) ; options || ( options = { } ) ; this . each ( this . _removeReference ) ; this . _reset ( ) ; this . add ( models , { silent : true } ) ; if ( ! options . silent ) this . trigger ( 'reset' , this , options ) ; return this ; }
When you have more items than you want to add or remove individually, you can reset the entire set with a new list of models, without firing any `added` or `removed` events. Fires `reset` when finished.
When you have more items than you want to add or remove individually you can reset the entire set with a new list of models without firing any added or removed events . Fires reset when finished .