lib/collection.js
function(model, options) {
      if (!(model instanceof Parse.Object)) {
        var attrs = model;
        options.collection = this;
        model = new this.model(attrs, options);
        if (!model._validate(model.attributes, options)) {
          model = false;
        }
      } else if (!model.collection) {
        model.collection = this;
      }
      return model;
    }
function(model, options) {
      if (!(model instanceof Parse.Object)) {
        var attrs = model;
        options.collection = this;
        model = new this.model(attrs, options);
        if (!model._validate(model.attributes, options)) {
          model = false;
        }
      } else if (!model.collection) {
        model.collection = this;
      }
      return model;
    }
function ( model , options ) { if ( ! ( model instanceof Parse . Object ) ) { var attrs = model ; options . collection = this ; model = new this . model ( attrs , options ) ; if ( ! model . _validate ( model . attributes , options ) ) { model = false ; } } else if ( ! model . collection ) { model . collection = this ; } return model ; }
Prepare a model or hash of attributes to be added to this collection.
Prepare a model or hash of attributes to be added to this collection .