client/js/upload-handler/xhr.upload.handler.js
function() {
            var expirationDays = resume.recordsExpireIn;

            handler._iterateResumeRecords(function(key, uploadData) {
                var expirationDate = new Date(uploadData.lastUpdated);

                // transform updated date into expiration date
                expirationDate.setDate(expirationDate.getDate() + expirationDays);

                if (expirationDate.getTime() <= Date.now()) {
                    log("Removing expired resume record with key " + key);
                    localStorage.removeItem(key);
                }
            });
        }
function() {
            var expirationDays = resume.recordsExpireIn;

            handler._iterateResumeRecords(function(key, uploadData) {
                var expirationDate = new Date(uploadData.lastUpdated);

                // transform updated date into expiration date
                expirationDate.setDate(expirationDate.getDate() + expirationDays);

                if (expirationDate.getTime() <= Date.now()) {
                    log("Removing expired resume record with key " + key);
                    localStorage.removeItem(key);
                }
            });
        }
function ( ) { var expirationDays = resume . recordsExpireIn ; handler . _iterateResumeRecords ( function ( key , uploadData ) { var expirationDate = new Date ( uploadData . lastUpdated ) ; // transform updated date into expiration date expirationDate . setDate ( expirationDate . getDate ( ) + expirationDays ) ; if ( expirationDate . getTime ( ) <= Date . now ( ) ) { log ( "Removing expired resume record with key " + key ) ; localStorage . removeItem ( key ) ; } } ) ; }
Deletes any local storage records that are "expired".
Deletes any local storage records that are expired .