dist/uncompressed/skylark-utils/models.js
function(entities, options) {
      options = options ? langx.clone(options) : {};
      for (var i = 0; i < this.entities.length; i++) {
        this._removeReference(this.entities[i], options);
      }
      options.previousEntitys = this.entities;
      this._reset();
      entities = this.add(entities, langx.mixin({silent: true}, options));
      if (!options.silent) this.trigger('reset', this, options);
      return entities;
    }
function(entities, options) {
      options = options ? langx.clone(options) : {};
      for (var i = 0; i < this.entities.length; i++) {
        this._removeReference(this.entities[i], options);
      }
      options.previousEntitys = this.entities;
      this._reset();
      entities = this.add(entities, langx.mixin({silent: true}, options));
      if (!options.silent) this.trigger('reset', this, options);
      return entities;
    }
function ( entities , options ) { options = options ? langx . clone ( options ) : { } ; for ( var i = 0 ; i < this . entities . length ; i ++ ) { this . _removeReference ( this . entities [ i ] , options ) ; } options . previousEntitys = this . entities ; this . _reset ( ) ; entities = this . add ( entities , langx . mixin ( { silent : true } , options ) ) ; if ( ! options . silent ) this . trigger ( 'reset' , this , options ) ; return entities ; }
When you have more items than you want to add or remove individually, you can reset the entire set with a new list of entities, without firing any granular `add` or `remove` events. Fires `reset` when finished. Useful for bulk operations and optimizations.
When you have more items than you want to add or remove individually you can reset the entire set with a new list of entities without firing any granular add or remove events . Fires reset when finished . Useful for bulk operations and optimizations .