Permalink
Browse files

Added ability to tick by zero chunks - tick(0)

  • Loading branch information...
1 parent d83fa84 commit 34fb5b63900ca6141ab4dfad9c3b55bfac262459 Ondrej Simek committed Mar 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/node-progress.js
View
@@ -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;

0 comments on commit 34fb5b6

Please sign in to comment.