]> git.parisson.com Git - pdf.js.git/commitdiff
Better undefined check
authorBrendan Dahl <brendan.dahl@gmail.com>
Sat, 6 Aug 2011 22:47:08 +0000 (15:47 -0700)
committerBrendan Dahl <brendan.dahl@gmail.com>
Sat, 6 Aug 2011 22:47:08 +0000 (15:47 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index 50594f2ad98e2ea2659944b682dc7f9f88251be1..57d8ffd22e025b0e50510b0a3bfd052574fdde03 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -2995,7 +2995,7 @@ var Page = (function() {
     inheritPageProp: function(key) {
       var dict = this.pageDict;
       var obj = dict.get(key);
-      while (typeof obj == 'undefined') {
+      while (obj === undefined) {
         dict = this.xref.fetchIfRef(dict.get('Parent'));
         if (!dict)
           break;