core.js
function Checkit(validations, options) {
  if (!(this instanceof Checkit)) {
    return new Checkit(validations, options);
  }
  this.conditional    = [];
  options             = _.clone(options || {});
  this.labels         = options.labels   || {};
  this.messages       = options.messages || {};
  this.language       = Checkit.i18n[options.language || Checkit.language] || {};
  this.labelTransform = options.labelTransform || Checkit.labelTransform
  this.validations    = prepValidations(validations || {});
}
function Checkit(validations, options) {
  if (!(this instanceof Checkit)) {
    return new Checkit(validations, options);
  }
  this.conditional    = [];
  options             = _.clone(options || {});
  this.labels         = options.labels   || {};
  this.messages       = options.messages || {};
  this.language       = Checkit.i18n[options.language || Checkit.language] || {};
  this.labelTransform = options.labelTransform || Checkit.labelTransform
  this.validations    = prepValidations(validations || {});
}
function Checkit ( validations , options ) { if ( ! ( this instanceof Checkit ) ) { return new Checkit ( validations , options ) ; } this . conditional = [ ] ; options = _ . clone ( options || { } ) ; this . labels = options . labels || { } ; this . messages = options . messages || { } ; this . language = Checkit . i18n [ options . language || Checkit . language ] || { } ; this . labelTransform = options . labelTransform || Checkit . labelTransform this . validations = prepValidations ( validations || { } ) ; }
The top level `Checkit` constructor, accepting the `validations` to be run and any additional `options`.
The top level Checkit constructor accepting the validations to be run and any additional options .