src/salvation.js
function(event) {
            var target = event.target;
            if (this.checkElementByPattern(target)) {
                if (this.invalidElements.indexOf(target) > -1)
                    this.invalidElements.splice(this.invalidElements.indexOf(target), 1);
                this.publicInterface.onValidation([target]);
            } else {
                if (this.invalidElements.indexOf(target) === -1)
                    this.invalidElements.push(target);
                var legend = this.legends[this.currentValidationType] || this.legends.unknown;
                this.publicInterface.onInvalidation([target], legend);
            }
        }
function(event) {
            var target = event.target;
            if (this.checkElementByPattern(target)) {
                if (this.invalidElements.indexOf(target) > -1)
                    this.invalidElements.splice(this.invalidElements.indexOf(target), 1);
                this.publicInterface.onValidation([target]);
            } else {
                if (this.invalidElements.indexOf(target) === -1)
                    this.invalidElements.push(target);
                var legend = this.legends[this.currentValidationType] || this.legends.unknown;
                this.publicInterface.onInvalidation([target], legend);
            }
        }
function ( event ) { var target = event . target ; if ( this . checkElementByPattern ( target ) ) { if ( this . invalidElements . indexOf ( target ) > - 1 ) this . invalidElements . splice ( this . invalidElements . indexOf ( target ) , 1 ) ; this . publicInterface . onValidation ( [ target ] ) ; } else { if ( this . invalidElements . indexOf ( target ) === - 1 ) this . invalidElements . push ( target ) ; var legend = this . legends [ this . currentValidationType ] || this . legends . unknown ; this . publicInterface . onInvalidation ( [ target ] , legend ) ; } }
Callback function for the change
event. Validates elements live.

@param       Event
Callback function for the change event . Validates elements live .