Skip to content

Duplicate progressEvent fired for last item in queue #32

@mix3d

Description

@mix3d

Because the onprogress event gets fired for every downloaded file, AND again just 4 lines later, the last item gets a progress event twice. No need for this second one; I would remove it.

in the onDone inner function in FileCache.download, after

self.list().then(function(){ 
    // final progress event!
    if(onSingleDownloadProgress) onSingleDownloadProgress(new ProgressEvent());

    // etc...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions