dist/vue-validator.common.js
function validator (
    id,
    def
  ) {
    if (def === undefined) {
      return Vue.options['validators'][id]
    } else {
      Vue.options['validators'][id] = def;
      if (def === null) {
        delete Vue.options['validators']['id'];
      }
    }
  }
function validator (
    id,
    def
  ) {
    if (def === undefined) {
      return Vue.options['validators'][id]
    } else {
      Vue.options['validators'][id] = def;
      if (def === null) {
        delete Vue.options['validators']['id'];
      }
    }
  }
function validator ( id , def ) { if ( def === undefined ) { return Vue . options [ 'validators' ] [ id ] } else { Vue . options [ 'validators' ] [ id ] = def ; if ( def === null ) { delete Vue . options [ 'validators' ] [ 'id' ] ; } } }
Register or retrieve a global validator definition.
Register or retrieve a global validator definition .