This repository has been archived by the owner on Aug 22, 2022. It is now read-only.
修复stopUpload函数中,在me.pool遍历时删除数组元素导致遍历不全的问题 #3095
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
webuploader/src/widgets/upload.js
Lines 335 to 346 in 7094e44
此处用$.each遍历me.pool时,me._popBlock(v);会删除me.pool里的元素,导致遍历不全,对分片回收不完整,从而出现暂停后再上传时,上传分片不全的问题。
本人引入变量 e 对其进行校正,解决此问题,望采纳!