Fixes typo in getAsync
This commit is contained in:
parent
2449142fc3
commit
b20b404061
@ -114,15 +114,15 @@ var Dict = (function DictClosure() {
|
|||||||
getAsync: function Dict_getAsync(key1, key2, key3) {
|
getAsync: function Dict_getAsync(key1, key2, key3) {
|
||||||
var value;
|
var value;
|
||||||
var xref = this.xref;
|
var xref = this.xref;
|
||||||
if (typeof (value = this.map[key1]) !== undefined || key1 in this.map ||
|
if (typeof (value = this.map[key1]) !== 'undefined' || key1 in this.map ||
|
||||||
typeof key2 === undefined) {
|
typeof key2 === 'undefined') {
|
||||||
if (xref) {
|
if (xref) {
|
||||||
return xref.fetchIfRefAsync(value);
|
return xref.fetchIfRefAsync(value);
|
||||||
}
|
}
|
||||||
return Promise.resolve(value);
|
return Promise.resolve(value);
|
||||||
}
|
}
|
||||||
if (typeof (value = this.map[key2]) !== undefined || key2 in this.map ||
|
if (typeof (value = this.map[key2]) !== 'undefined' || key2 in this.map ||
|
||||||
typeof key3 === undefined) {
|
typeof key3 === 'undefined') {
|
||||||
if (xref) {
|
if (xref) {
|
||||||
return xref.fetchIfRefAsync(value);
|
return xref.fetchIfRefAsync(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user