From: sbarman Date: Thu, 14 Jul 2011 00:58:54 +0000 (-0700) Subject: added reset X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=7ee383a7f8adaffc58ca950fd6125a5e673781d5;p=pdf.js.git added reset --- diff --git a/pdf.js b/pdf.js index a317940..9aef8aa 100644 --- a/pdf.js +++ b/pdf.js @@ -221,6 +221,9 @@ var DecodeStream = (function() { if (!n) n = 1; this.pos += n; + }, + reset: function decodestream_reset() { + this.pos = 0; } };