Skip to content

Commit

Permalink
Merge pull request #6 from KevinGaudin/master
Browse files Browse the repository at this point in the history
maxArray default value was not checked
  • Loading branch information
padolsey committed Nov 28, 2012
2 parents 14f6cf1 + cbd4e09 commit dea5fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prettyprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ var prettyPrint = (function(){
}

util.forEach(arr, function(item,i){
if (++count > settings.maxArray) {
if (settings.maxArray >= 0 && ++count > settings.maxArray) {
table.addRow([
i + '..' + (arr.length-1),
typeDealer[ util.type(item) ]('...', depth+1, i)
Expand Down

0 comments on commit dea5fb2

Please sign in to comment.