build/rekord.js
function(database, models, remoteData)
  {
    Class.props(this, {
      database: database,
      map: new Map()
    });

    this.map.values = this;
    this.reset( models, remoteData );

    return this;
  }
function(database, models, remoteData)
  {
    Class.props(this, {
      database: database,
      map: new Map()
    });

    this.map.values = this;
    this.reset( models, remoteData );

    return this;
  }
function ( database , models , remoteData ) { Class . props ( this , { database : database , map : new Map ( ) } ) ; this . map . values = this ; this . reset ( models , remoteData ) ; return this ; }
Initializes the model collection by setting the database, the initial set
of models, and whether the initial set of models is from a remote source.

@method
@memberof Rekord.ModelCollection#
@param {Rekord.Database} database -
The database for the models in this collection.
@param {modelInput[]} [models] -
The initial array of models in this collection.
@param {Boolean} [remoteData=false] -
If the models array is from a remote source. Remote sources place the
model directly into the database while local sources aren't stored in the
database until they're saved.
@return {Rekord.ModelCollection} -
The reference to this collection.
@emits Rekord.ModelCollection#reset
Initializes the model collection by setting the database the initial set of models and whether the initial set of models is from a remote source .