Skip to content

Commit

Permalink
去掉 splice log
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Dec 24, 2018
1 parent 48d849b commit fe2a8d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/cos-js-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ base.init(COS, task);
advance.init(COS, task);

COS.getAuthorization = util.getAuth;
COS.version = '0.5.2';
COS.version = '0.5.3';

module.exports = COS;

Expand Down Expand Up @@ -3713,7 +3713,6 @@ var initTask = function (cos) {
i < nextUploadIndex; // 小于当前操作的 index 才处理
i++) {
if (!queue[i] || queue[i].state !== 'waiting') {
console.log('splice:', queue.length, i, queue[i] && queue[i].state);
queue.splice(i, 1);
nextUploadIndex--;
}
Expand Down Expand Up @@ -3778,6 +3777,7 @@ var initTask = function (cos) {
delete task.callback;
}
}
clearQueue();
};

cos._addTasks = function (taskList) {
Expand Down
2 changes: 1 addition & 1 deletion dist/cos-js-sdk-v5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/cos.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ base.init(COS, task);
advance.init(COS, task);

COS.getAuthorization = util.getAuth;
COS.version = '0.5.2';
COS.version = '0.5.3';

module.exports = COS;

0 comments on commit fe2a8d5

Please sign in to comment.