]> git.parisson.com Git - pdf.js.git/commitdiff
added reset
authorsbarman <sbarman@L3CWZ5T.(none)>
Thu, 14 Jul 2011 00:58:54 +0000 (17:58 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Thu, 14 Jul 2011 00:58:54 +0000 (17:58 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index a3179406ceda56cee60952e3dc7341ae5945fe73..9aef8aa286d0605e84ea46680e6843df36ff264f 100644 (file)
--- 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;
     }
   };