demo/load-event/js/libs/detectizr/detectizr-2.2.0.js
function setVersion(versionType, versionFull) {
        versionType.version = versionFull;
        var versionArray = versionFull.split(".");
        if (versionArray.length > 0) {
            versionArray = versionArray.reverse();
            versionType.major = versionArray.pop();
            if (versionArray.length > 0) {
                versionType.minor = versionArray.pop();
                if (versionArray.length > 0) {
                    versionArray = versionArray.reverse();
                    versionType.patch = versionArray.join(".");
                } else {
                    versionType.patch = "0";
                }
            } else {
                versionType.minor = "0";
            }
        } else {
            versionType.major = "0";
        }
    }
function setVersion(versionType, versionFull) {
        versionType.version = versionFull;
        var versionArray = versionFull.split(".");
        if (versionArray.length > 0) {
            versionArray = versionArray.reverse();
            versionType.major = versionArray.pop();
            if (versionArray.length > 0) {
                versionType.minor = versionArray.pop();
                if (versionArray.length > 0) {
                    versionArray = versionArray.reverse();
                    versionType.patch = versionArray.join(".");
                } else {
                    versionType.patch = "0";
                }
            } else {
                versionType.minor = "0";
            }
        } else {
            versionType.major = "0";
        }
    }
function setVersion ( versionType , versionFull ) { versionType . version = versionFull ; var versionArray = versionFull . split ( "." ) ; if ( versionArray . length > 0 ) { versionArray = versionArray . reverse ( ) ; versionType . major = versionArray . pop ( ) ; if ( versionArray . length > 0 ) { versionType . minor = versionArray . pop ( ) ; if ( versionArray . length > 0 ) { versionArray = versionArray . reverse ( ) ; versionType . patch = versionArray . join ( "." ) ; } else { versionType . patch = "0" ; } } else { versionType . minor = "0" ; } } else { versionType . major = "0" ; } }
set version based on versionFull
set version based on versionFull