dist/validetta.js
function(){
      var self = this; // stored this
      // Handle submit event
      $( this.form ).submit( function( e ) {
        // fields to be controlled transferred to global variable
        FIELDS = this.querySelectorAll('[data-validetta]');
        return self.init( e );
      });
      // real-time option control
      if( this.options.realTime === true ) {
        // handle change event for form elements (without checkbox)
        $( this.form ).find('[data-validetta]').not('[type=checkbox]').on( 'change', function( e ) {
          // field to be controlled transferred to global variable
          FIELDS = $( this );
          return self.init( e );
        });
        // handle click event for checkboxes
        $( this.form ).find('[data-validetta][type=checkbox]').on( 'click', function( e ) {
          // fields to be controlled transferred to global variable
          FIELDS = self.form.querySelectorAll('[data-validetta][type=checkbox][name="'+ this.name +'"]');
          return self.init( e );
        });
      }
      // handle <form> reset button to clear error messages
      $( this.form ).on( 'reset', function() {
        $( self.form.querySelectorAll( '.'+ self.options.errorClass +', .'+ self.options.validClass ) )
          .removeClass( self.options.errorClass +' '+ self.options.validClass );
        return self.reset();
      });
    }
function(){
      var self = this; // stored this
      // Handle submit event
      $( this.form ).submit( function( e ) {
        // fields to be controlled transferred to global variable
        FIELDS = this.querySelectorAll('[data-validetta]');
        return self.init( e );
      });
      // real-time option control
      if( this.options.realTime === true ) {
        // handle change event for form elements (without checkbox)
        $( this.form ).find('[data-validetta]').not('[type=checkbox]').on( 'change', function( e ) {
          // field to be controlled transferred to global variable
          FIELDS = $( this );
          return self.init( e );
        });
        // handle click event for checkboxes
        $( this.form ).find('[data-validetta][type=checkbox]').on( 'click', function( e ) {
          // fields to be controlled transferred to global variable
          FIELDS = self.form.querySelectorAll('[data-validetta][type=checkbox][name="'+ this.name +'"]');
          return self.init( e );
        });
      }
      // handle <form> reset button to clear error messages
      $( this.form ).on( 'reset', function() {
        $( self.form.querySelectorAll( '.'+ self.options.errorClass +', .'+ self.options.validClass ) )
          .removeClass( self.options.errorClass +' '+ self.options.validClass );
        return self.reset();
      });
    }
function ( ) { var self = this ; // stored this
 // Handle submit event
 $ ( this . form ) . submit ( function ( e ) { // fields to be controlled transferred to global variable
 FIELDS = this . querySelectorAll ( '[data-validetta]' ) ; return self . init ( e ) ; } ) ; // real-time option control
 if ( this . options . realTime === true ) { // handle change event for form elements (without checkbox)
 $ ( this . form ) . find ( '[data-validetta]' ) . not ( '[type=checkbox]' ) . on ( 'change' , function ( e ) { // field to be controlled transferred to global variable
 FIELDS = $ ( this ) ; return self . init ( e ) ; } ) ; // handle click event for checkboxes
 $ ( this . form ) . find ( '[data-validetta][type=checkbox]' ) . on ( 'click' , function ( e ) { // fields to be controlled transferred to global variable
 FIELDS = self . form . querySelectorAll ( '[data-validetta][type=checkbox][name="' + this . name + '"]' ) ; return self . init ( e ) ; } ) ; } // handle <form> reset button to clear error messages
 $ ( this . form ) . on ( 'reset' , function ( ) { $ ( self . form . querySelectorAll ( '.' + self . options . errorClass + ', .' + self . options . validClass ) ) . removeClass ( self . options . errorClass + ' ' + self . options . validClass ) ; return self . reset ( ) ; } ) ; }
This is the method of handling events

@return {mixed}
This is the method of handling events