lib/http/public/javascripts/main.js
function pollForJobs(state, ms) {
    o('h1').text(state);
    refreshJobs(state, function () {
        infiniteScroll();
        if (!pollForJobs.timer) pollForJobs.timer = setTimeout(function () {
            delete pollForJobs.timer;
            pollForJobs(state, ms);
        }, ms);
    });
}
function pollForJobs(state, ms) {
    o('h1').text(state);
    refreshJobs(state, function () {
        infiniteScroll();
        if (!pollForJobs.timer) pollForJobs.timer = setTimeout(function () {
            delete pollForJobs.timer;
            pollForJobs(state, ms);
        }, ms);
    });
}
function pollForJobs ( state , ms ) { o ( 'h1' ) . text ( state ) ; refreshJobs ( state , function ( ) { infiniteScroll ( ) ; if ( ! pollForJobs . timer ) pollForJobs . timer = setTimeout ( function ( ) { delete pollForJobs . timer ; pollForJobs ( state , ms ) ; } , ms ) ; } ) ; }
Poll for jobs with `state` every `ms`.

@param {String} state
@param {Number} ms
Poll for jobs with state every ms .