Better undefined check

This commit is contained in:
Brendan Dahl 2011-08-06 15:47:08 -07:00
parent 4377eed920
commit 3a80ccad4e

2
pdf.js
View File

@ -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;