build/rekord.js
function()
  {
    var values = AP.slice.apply( arguments );
    var indices = [];

    for (var i = 0; i < values.length; i++)
    {
      var model = this.parseModel( values[ i ] );
      var key = model.$key();

      this.map.put( key, model );
      indices.push( this.map.indices[ key ] );
    }

    this.trigger( Collection.Events.Adds, [this, values, indices] );
    this.sort();

    return this.length;
  }
function()
  {
    var values = AP.slice.apply( arguments );
    var indices = [];

    for (var i = 0; i < values.length; i++)
    {
      var model = this.parseModel( values[ i ] );
      var key = model.$key();

      this.map.put( key, model );
      indices.push( this.map.indices[ key ] );
    }

    this.trigger( Collection.Events.Adds, [this, values, indices] );
    this.sort();

    return this.length;
  }
function ( ) { var values = AP . slice . apply ( arguments ) ; var indices = [ ] ; for ( var i = 0 ; i < values . length ; i ++ ) { var model = this . parseModel ( values [ i ] ) ; var key = model . $key ( ) ; this . map . put ( key , model ) ; indices . push ( this . map . indices [ key ] ) ; } this . trigger ( Collection . Events . Adds , [ this , values , indices ] ) ; this . sort ( ) ; return this . length ; }
Adds one or more models to the end of this collection - sorting the
collection if a comparator is set on this collection.

@method
@memberof Rekord.ModelCollection#
@param {...modelInput} value -
The models to add to this collection.
@return {Number} -
The new length of this collection.
@emits Rekord.ModelCollection#add
@emits Rekord.ModelCollection#sort
Adds one or more models to the end of this collection - sorting the collection if a comparator is set on this collection .