lib/tasks.js
function needFix (stylecowSupport, task, method) {
    const taskSupport = task[method];

    if (!taskSupport || !stylecowSupport) {
        return true;
    }

    for (let browser in taskSupport) {
        if (stylecowSupport[browser] === false) {
            continue;
        }

        if (method === 'forBrowsersLowerThan' && (taskSupport[browser] === false || stylecowSupport[browser] < taskSupport[browser])) {
            return true;
        }

        if (method === 'forBrowsersUpperOrEqualTo') {
            if (taskSupport[browser] === false) {
                return false;
            }

            if (stylecowSupport[browser] >= taskSupport[browser]) {
                return true;
            }
        }
    }

    return false;
}
function needFix (stylecowSupport, task, method) {
    const taskSupport = task[method];

    if (!taskSupport || !stylecowSupport) {
        return true;
    }

    for (let browser in taskSupport) {
        if (stylecowSupport[browser] === false) {
            continue;
        }

        if (method === 'forBrowsersLowerThan' && (taskSupport[browser] === false || stylecowSupport[browser] < taskSupport[browser])) {
            return true;
        }

        if (method === 'forBrowsersUpperOrEqualTo') {
            if (taskSupport[browser] === false) {
                return false;
            }

            if (stylecowSupport[browser] >= taskSupport[browser]) {
                return true;
            }
        }
    }

    return false;
}
function needFix ( stylecowSupport , task , method ) { const taskSupport = task [ method ] ; if ( ! taskSupport || ! stylecowSupport ) { return true ; } for ( let browser in taskSupport ) { if ( stylecowSupport [ browser ] === false ) { continue ; } if ( method === 'forBrowsersLowerThan' && ( taskSupport [ browser ] === false || stylecowSupport [ browser ] < taskSupport [ browser ] ) ) { return true ; } if ( method === 'forBrowsersUpperOrEqualTo' ) { if ( taskSupport [ browser ] === false ) { return false ; } if ( stylecowSupport [ browser ] >= taskSupport [ browser ] ) { return true ; } } } return false ; }
check the browser support of a task
check the browser support of a task