_bpIsValidForStatic = function()

in lib/dd.breakpoints.js [231:278]


    _bpIsValidForStatic = function(min, max, property) {
        if (typeof (property) !== 'string') {
            property = 'width'; //default to width based media query
        }

        if (property !== 'width') {
            return false;
        }

        var bpValidMin = _bpToEms(_options.staticRange.min),
            bpValidMax = _bpToEms(_options.staticRange.max, true),
            parsed = _parseMinMaxInputs(min, max),
            bpMin = _bpToEms(parsed.min),
            bpMax = _bpToEms(parsed.max);

        // if max is 0 we have a min-and-above situation
        if (parsed.max === 0) {
            // need to check that the min is greater than the valid min,
            // AND also that the min is less than the valid maximum
            if (bpMin >= bpValidMin && bpMin < bpValidMax) {
                return true;
            }

            return false;
        }

        // if min is 0 we have a max-and-below situation
        if (parsed.min === 0) {
            if (bpMax >= bpValidMax) {
                return true;
            }

            return false;
        }

        // if the min is above the valid max, or the max is below the valid min
        if (bpMin > bpValidMax || bpMax < bpValidMin) {
            return false;
        }

        // if the breakpoint is a bp-between (assumed because $max and $min aren't 0)
        // don't show if the max isn't above the valid max
        if (bpMax < bpValidMax) {
            return false;
        }

        return true;
    };