code: function Plugin(option) {
      return this.each(function () {
        var $this   = $(this)
        var options = $.extend({}, Validator.DEFAULTS, $this.data(), typeof option == 'object' && option)
        var data    = $this.data('bs.validator')
  
        if (!data && option == 'destroy') return
        if (!data) $this.data('bs.validator', (data = new Validator(this, options)))
        if (typeof option == 'string') data[option]()
      })
    }
docs: VALIDATOR PLUGIN DEFINITION ===========================