Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2600 from forked-repositories/master
Browse files Browse the repository at this point in the history
修正大小写和注释
  • Loading branch information
2betop authored Mar 19, 2018
2 parents 6f21fe2 + 7c36a11 commit 94ccdbd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions src/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ define([
* * `numOfProgress` 正在上传中的文件数
* * `numOfUploadFailed` 上传错误的文件数。
* * `numOfInvalid` 无效的文件数。
* * `numofDeleted` 被移除的文件数。
* * `numOfDeleted` 被移除的文件数。
* * `numOfInterrupt` 被中断的文件数。
* @property {Object} stats
*/
this.stats = {
Expand All @@ -35,8 +36,8 @@ define([
numOfProgress: 0,
numOfUploadFailed: 0,
numOfInvalid: 0,
numofDeleted: 0,
numofInterrupt: 0
numOfDeleted: 0,
numOfInterrupt: 0
};

// 上传队列,仅包括等待上传的文件
Expand Down Expand Up @@ -162,7 +163,7 @@ define([
delete this._map[ file.id ];
this._delFile(file);
file.destroy();
this.stats.numofDeleted++;
this.stats.numOfDeleted++;

}
},
Expand Down Expand Up @@ -210,7 +211,7 @@ define([
break;

case STATUS.INTERRUPT:
stats.numofInterrupt--;
stats.numOfInterrupt--;
break;
}

Expand Down Expand Up @@ -241,7 +242,7 @@ define([
break;

case STATUS.INTERRUPT:
stats.numofInterrupt++;
stats.numOfInterrupt++;
break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ define([
invalidNum: stats.numOfInvalid,
uploadFailNum: stats.numOfUploadFailed,
queueNum: stats.numOfQueue,
interruptNum: stats.numofInterrupt
interruptNum: stats.numOfInterrupt
} : {};
},

Expand Down Expand Up @@ -196,4 +196,4 @@ define([
Base.Uploader = Uploader;

return Uploader;
});
});
2 changes: 1 addition & 1 deletion src/widgets/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ define([

// 没有要上传的了,且没有正在传输的了。
} else if ( !me.remaning && !me._getStats().numOfQueue &&
!me._getStats().numofInterrupt ) {
!me._getStats().numOfInterrupt ) {
me.runing = false;

me._trigged || Base.nextTick(function() {
Expand Down

0 comments on commit 94ccdbd

Please sign in to comment.