Skip to content

Commit

Permalink
Don't rely on the errors object when all we care about is in the mess…
Browse files Browse the repository at this point in the history
…ages collection
  • Loading branch information
Christian Johansen committed Dec 3, 2009
1 parent 37db8d5 commit 730f4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/reporting.js
Expand Up @@ -39,7 +39,7 @@ v2.ErrorReporting = {

// Set number of errors to display. -1 is all, maximum is all. Abort if 0
var count = this.displayErrors;
var max = this.__errors.length;
var max = messages.length;
count = count < 0 || count > max ? max : count;

if (count === 0) {
Expand Down

0 comments on commit 730f4ff

Please sign in to comment.