Better undefined check
This commit is contained in:
parent
4377eed920
commit
3a80ccad4e
2
pdf.js
2
pdf.js
@ -2995,7 +2995,7 @@ var Page = (function() {
|
|||||||
inheritPageProp: function(key) {
|
inheritPageProp: function(key) {
|
||||||
var dict = this.pageDict;
|
var dict = this.pageDict;
|
||||||
var obj = dict.get(key);
|
var obj = dict.get(key);
|
||||||
while (typeof obj == 'undefined') {
|
while (obj === undefined) {
|
||||||
dict = this.xref.fetchIfRef(dict.get('Parent'));
|
dict = this.xref.fetchIfRef(dict.get('Parent'));
|
||||||
if (!dict)
|
if (!dict)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user