src/boxzilla.js
function checkPageViewsCriteria() {

    // don't bother if another box is currently open
    if( isAnyBoxVisible() ) {
        return;
    }

    boxes.forEach(function(box) {
        if( ! box.mayAutoShow() ) {
            return;
        }

        if( box.config.trigger.method === 'pageviews' && pageViews >= box.config.trigger.value ) {
            box.trigger();
        }
    });
}
function checkPageViewsCriteria() {

    // don't bother if another box is currently open
    if( isAnyBoxVisible() ) {
        return;
    }

    boxes.forEach(function(box) {
        if( ! box.mayAutoShow() ) {
            return;
        }

        if( box.config.trigger.method === 'pageviews' && pageViews >= box.config.trigger.value ) {
            box.trigger();
        }
    });
}
function checkPageViewsCriteria ( ) { // don't bother if another box is currently open if ( isAnyBoxVisible ( ) ) { return ; } boxes . forEach ( function ( box ) { if ( ! box . mayAutoShow ( ) ) { return ; } if ( box . config . trigger . method === 'pageviews' && pageViews >= box . config . trigger . value ) { box . trigger ( ) ; } } ) ; }
check "pageviews" criteria for each box
check pageviews criteria for each box