]> git.parisson.com Git - pdf.js.git/commitdiff
changed undefined to null check
authorsbarman <sbarman@L3CWZ5T.(none)>
Sat, 25 Jun 2011 04:42:22 +0000 (21:42 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Sat, 25 Jun 2011 04:42:22 +0000 (21:42 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 906ca4270e983692df171153a360dd1fea3287db..7f81cbe079754ebfb220d73dd12c8ccc255199fa 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -1867,7 +1867,7 @@ var CCITTFaxStream = (function() {
     constructor.prototype.lookBits = function(n) {
         var c;
         while (this.inputBits < n) {
-            if (typeof (c = this.str.getByte()) == "undefined") {
+            if ((c = this.str.getByte()) == null) {
                 if (this.inputBits == 0)
                     return EOF;
                 return (this.inputBuf << (n - this.inputBits))