From: sbarman Date: Thu, 4 Aug 2011 05:43:15 +0000 (-0700) Subject: cleanup X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7a7ff9e8c5398d7129c2693075e97c8d6f1ecf2f;p=pdf.js.git cleanup --- diff --git a/pdf.js b/pdf.js index 70d828f..3cd2d80 100644 --- a/pdf.js +++ b/pdf.js @@ -230,9 +230,8 @@ var DecodeStream = (function() { }, makeSubStream: function decodestream_makeSubstream(start, length, dict) { var end = start + length; - while (this.bufferLength <= end && !this.eof) { + while (this.bufferLength <= end && !this.eof) this.readBlock(); - } return new Stream(this.buffer, start, length, dict); }, skip: function decodestream_skip(n) {