examples/validation/dist/index.js
function getInputsInSection(node) {
        var resolving = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

        var inputGroups = this.getInputGroupsInSection(node);
        var inputs = void 0;
        if (resolving) {
            inputs = {
                inputs: {},
                invalidInputs: {},
                length: 0,
                unresolvedLength: 0,
                invalidLength: 0
            };
        } else {
            inputs = [];
        }
        for (var k = 0; k < inputGroups.length; k++) {
            var input = this.getInput(inputGroups[k]);
            if (input === false) {
                console.error(inputGroups[k]);
                throw new Error('Bunny Validation: Input group has no input');
            }
            if (resolving) {
                inputs.inputs[k] = {
                    input: input,
                    isValid: null
                };
                inputs.length++;
                inputs.unresolvedLength++;
            } else {
                inputs.push(input);
            }
        }
        return inputs;
    }
function getInputsInSection(node) {
        var resolving = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

        var inputGroups = this.getInputGroupsInSection(node);
        var inputs = void 0;
        if (resolving) {
            inputs = {
                inputs: {},
                invalidInputs: {},
                length: 0,
                unresolvedLength: 0,
                invalidLength: 0
            };
        } else {
            inputs = [];
        }
        for (var k = 0; k < inputGroups.length; k++) {
            var input = this.getInput(inputGroups[k]);
            if (input === false) {
                console.error(inputGroups[k]);
                throw new Error('Bunny Validation: Input group has no input');
            }
            if (resolving) {
                inputs.inputs[k] = {
                    input: input,
                    isValid: null
                };
                inputs.length++;
                inputs.unresolvedLength++;
            } else {
                inputs.push(input);
            }
        }
        return inputs;
    }
function getInputsInSection ( node ) { var resolving = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : false ; var inputGroups = this . getInputGroupsInSection ( node ) ; var inputs = void 0 ; if ( resolving ) { inputs = { inputs : { } , invalidInputs : { } , length : 0 , unresolvedLength : 0 , invalidLength : 0 } ; } else { inputs = [ ] ; } for ( var k = 0 ; k < inputGroups . length ; k ++ ) { var input = this . getInput ( inputGroups [ k ] ) ; if ( input === false ) { console . error ( inputGroups [ k ] ) ; throw new Error ( 'Bunny Validation: Input group has no input' ) ; } if ( resolving ) { inputs . inputs [ k ] = { input : input , isValid : null } ; inputs . length ++ ; inputs . unresolvedLength ++ ; } else { inputs . push ( input ) ; } } return inputs ; }
Find inputs in section

@meta if second argument true - return object with meta information to use during promise resolving

@param {HTMLElement} node
@param {boolean} resolving = false

@returns {Array|Object}
Find inputs in section