lib/collection.js
function constructor(models, options) {
      if (!Array.isArray(models)) {
        options = models;
        models = [];
      }

      options = options || {};

      //
      // Set the database name if it was provided in the options.
      //
      if (options.url) this.url = options.url;
      if (options.database) this.database = options.database;

      //
      // Define restricted non-enumerated properties.
      //
      predefine(this, fossa);

      //
      // Call original Backbone Model constructor.
      //
      backbone.Collection.call(this, models, options);
    }
function constructor(models, options) {
      if (!Array.isArray(models)) {
        options = models;
        models = [];
      }

      options = options || {};

      //
      // Set the database name if it was provided in the options.
      //
      if (options.url) this.url = options.url;
      if (options.database) this.database = options.database;

      //
      // Define restricted non-enumerated properties.
      //
      predefine(this, fossa);

      //
      // Call original Backbone Model constructor.
      //
      backbone.Collection.call(this, models, options);
    }
function constructor ( models , options ) { if ( ! Array . isArray ( models ) ) { options = models ; models = [ ] ; } options = options || { } ; // // Set the database name if it was provided in the options. // if ( options . url ) this . url = options . url ; if ( options . database ) this . database = options . database ; // // Define restricted non-enumerated properties. // predefine ( this , fossa ) ; // // Call original Backbone Model constructor. // backbone . Collection . call ( this , models , options ) ; }
Override default Collection Constructor.

@param {Array} models
@param {Object} options
@api private
Override default Collection Constructor .