From 3a80ccad4ec50cf368cbdd370867e57e11f61241 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Sat, 6 Aug 2011 15:47:08 -0700 Subject: [PATCH] Better undefined check --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index 50594f2ad..57d8ffd22 100644 --- 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;