]> git.parisson.com Git - pdf.js.git/commitdiff
fix StringStream constructor delegation to Stream
authorAndreas Gal <andreas.gal@gmail.com>
Sun, 8 May 2011 05:57:04 +0000 (22:57 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Sun, 8 May 2011 05:57:04 +0000 (22:57 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index c92bf9bc276b3b013e02cabeb1f5a624e540d373..74a5b218227fc5d879f07722bd6ed15099850049 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -76,7 +76,7 @@ var StringStream = (function () {
         var bytes = new Uint8Array(length);
         for (var n = 0; n < length; ++n)
             bytes[n] = str.charCodeAt(n);
-        this.Stream(bytes);
+        Stream.call(this, bytes);
     }
 
     constructor.prototype = Stream.prototype;