scripts/core/augmented.js
function() {
            if (this.supportsValidation() && Augmented.ValidationFramework.supportsValidation()) {
              // validate from Validator
              this.validationMessages = Augmented.ValidationFramework.validate(this.toJSON(), this.schema);
            } else {
              this.validationMessages.valid = true;
            }
            return this.validationMessages;
          }
function() {
            if (this.supportsValidation() && Augmented.ValidationFramework.supportsValidation()) {
              // validate from Validator
              this.validationMessages = Augmented.ValidationFramework.validate(this.toJSON(), this.schema);
            } else {
              this.validationMessages.valid = true;
            }
            return this.validationMessages;
          }
function ( ) { if ( this . supportsValidation ( ) && Augmented . ValidationFramework . supportsValidation ( ) ) { // validate from Validator this . validationMessages = Augmented . ValidationFramework . validate ( this . toJSON ( ) , this . schema ) ; } else { this . validationMessages . valid = true ; } return this . validationMessages ; }
Validates the model
@method validate
@memberof Augmented.Model
@returns {array} Returns array of messages from validation
Validates the model