mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +02:00
XFA - Correctly bind global data (bug 1718725)
This commit is contained in:
parent
b2b7806cab
commit
778800a53a
5 changed files with 14 additions and 16 deletions
|
@ -25,7 +25,6 @@ import {
|
|||
$getDataValue,
|
||||
$getParent,
|
||||
$getRealChildrenByNameIt,
|
||||
$global,
|
||||
$hasSettableValue,
|
||||
$indexOf,
|
||||
$insertAt,
|
||||
|
@ -158,19 +157,13 @@ class Binder {
|
|||
// (which is the location of global variables).
|
||||
generator = this.data[$getRealChildrenByNameIt](
|
||||
name,
|
||||
/* allTransparent = */ false,
|
||||
/* allTransparent = */ true,
|
||||
/* skipConsumed = */ false
|
||||
);
|
||||
|
||||
while (true) {
|
||||
match = generator.next().value;
|
||||
if (!match) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (match[$global]) {
|
||||
return match;
|
||||
}
|
||||
match = generator.next().value;
|
||||
if (match) {
|
||||
return match;
|
||||
}
|
||||
|
||||
// Thirdly, try to find it in attributes.
|
||||
|
@ -590,6 +583,7 @@ class Binder {
|
|||
dataNode,
|
||||
global
|
||||
);
|
||||
|
||||
if (!found) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue