demo/load-event/js/libs/detectizr/detectizr-2.2.0.js
function removeClass(element, value) {
        var class2remove = value || "",
            cur = element.nodeType === 1 && (element.className ? (" " + element.className + " ").replace(rclass, " ") : "");
        if (cur) {
            while (cur.indexOf(" " + class2remove + " ") >= 0) {
                cur = cur.replace(" " + class2remove + " ", " ");
            }
            element.className = value ? trim(cur) : "";
        }
    }
function removeClass(element, value) {
        var class2remove = value || "",
            cur = element.nodeType === 1 && (element.className ? (" " + element.className + " ").replace(rclass, " ") : "");
        if (cur) {
            while (cur.indexOf(" " + class2remove + " ") >= 0) {
                cur = cur.replace(" " + class2remove + " ", " ");
            }
            element.className = value ? trim(cur) : "";
        }
    }
function removeClass ( element , value ) { var class2remove = value || "" , cur = element . nodeType === 1 && ( element . className ? ( " " + element . className + " " ) . replace ( rclass , " " ) : "" ) ; if ( cur ) { while ( cur . indexOf ( " " + class2remove + " " ) >= 0 ) { cur = cur . replace ( " " + class2remove + " " , " " ) ; } element . className = value ? trim ( cur ) : "" ; } }
removeClass function inspired from jQuery.removeClass
removeClass function inspired from jQuery . removeClass