frontend/laboratory/dsm/TStateValidator.js
/**
 * The state validator binds validation functions
 *
 * @constructor
 */
The state validator binds validation functions
@constructor
The state validator binds validation functions @constructor
function TStateValidator(){
    var validations = {};
    var StateValidator = Trait({
        state: Trait.required,
        errors:Trait.required,
        hasValidation: function(){
            return Object.keys(validations).length > 0;
        }
    });
    StateValidator.initialize = function(){
        addValidation(this.state(), this, validations);
    };
    return DSM.traitify(StateValidator);
}
function TStateValidator ( ) { var validations = { } ; var StateValidator = Trait ( { state : Trait . required , errors : Trait . required , hasValidation : function ( ) { return Object . keys ( validations ) . length > 0 ; } } ) ; StateValidator . initialize = function ( ) { addValidation ( this . state ( ) , this , validations ) ; } ; return DSM . traitify ( StateValidator ) ; }
The state validator binds validation functions
 @constructor
The state validator binds validation functions @constructor