Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #5 from angel333/master

tick(0) should not be the same as tick()
  • Loading branch information...
commit a10eaee5e1196da3e1d2f60436f2c81096138cda 2 parents d83fa84 + 34fb5b6
@tj authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/node-progress.js
View
3  lib/node-progress.js
@@ -67,7 +67,8 @@ function ProgressBar(fmt, options) {
*/
ProgressBar.prototype.tick = function(len, tokens){
- len = len || 1;
+ if (len !== 0)
+ len = len || 1;
// swap tokens
if ('object' == typeof len) tokens = len, len = 1;
Please sign in to comment.
Something went wrong with that request. Please try again.