index.js
function progress( _line ){

    messages[ _line ].progress++;

    if( (messages[ _line ].progress + messages[ _line ].diff) > 0 ){

        messages[ _line ].progress = 0;

    }

}
function progress( _line ){

    messages[ _line ].progress++;

    if( (messages[ _line ].progress + messages[ _line ].diff) > 0 ){

        messages[ _line ].progress = 0;

    }

}
function progress ( _line ) { messages [ _line ] . progress ++ ; if ( ( messages [ _line ] . progress + messages [ _line ] . diff ) > 0 ) { messages [ _line ] . progress = 0 ; } }
Incremente progress or reset if done.

@param (int) _line - Line index
Incremente progress or reset if done .