lib/html-interface.js
function initGroup(groupElem) {
    $$.ready(registerGroupFromDataAttribtues);

    function registerGroupFromDataAttribtues() {

        inputElems = $$.getElementsByTagNames(validInputTagNames, groupElem)
            .filter(function(el) {
                return $$.hasDataSet(el, 'vivalidTuples');
            });

        var vivalidGroup = createGroupFromDataAttribtues(groupElem, inputElems);
        addToGroupNameDictionairy(groupElem, vivalidGroup);

    }
}
function initGroup(groupElem) {
    $$.ready(registerGroupFromDataAttribtues);

    function registerGroupFromDataAttribtues() {

        inputElems = $$.getElementsByTagNames(validInputTagNames, groupElem)
            .filter(function(el) {
                return $$.hasDataSet(el, 'vivalidTuples');
            });

        var vivalidGroup = createGroupFromDataAttribtues(groupElem, inputElems);
        addToGroupNameDictionairy(groupElem, vivalidGroup);

    }
}
function initGroup ( groupElem ) { $$ . ready ( registerGroupFromDataAttribtues ) ; function registerGroupFromDataAttribtues ( ) { inputElems = $$ . getElementsByTagNames ( validInputTagNames , groupElem ) . filter ( function ( el ) { return $$ . hasDataSet ( el , 'vivalidTuples' ) ; } ) ; var vivalidGroup = createGroupFromDataAttribtues ( groupElem , inputElems ) ; addToGroupNameDictionairy ( groupElem , vivalidGroup ) ; } }
Bootstraps a group by the group's DOM HTMLElement when using the html data attributes interface. Provides more control over vivalid.htmlInterface.init. Usefull when some of the elements are not present when DOMContentLoaded fires, but rather are appended at some later stage in the application flow.
@memberof! vivalid.htmlInterface
@function
@example vivalid.htmlInterface.initGroup(document.getElementById('FormId'));
@param {HTMLElement} groupElem
Bootstraps a group by the group s DOM HTMLElement when using the html data attributes interface . Provides more control over vivalid . htmlInterface . init . Usefull when some of the elements are not present when DOMContentLoaded fires but rather are appended at some later stage in the application flow .