mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-25 08:27:19 +02:00
Re-use the NS_DATASETS constant more in the src/core/xfa/bind.js file
This commit is contained in:
parent
028c02f539
commit
69e26ad319
@ -55,8 +55,7 @@ class Binder {
|
||||
constructor(root) {
|
||||
this.root = root;
|
||||
this.datasets = root.datasets;
|
||||
this.data =
|
||||
root.datasets?.data || new XmlObject(NamespaceIds.datasets.id, "data");
|
||||
this.data = root.datasets?.data || new XmlObject(NS_DATASETS, "data");
|
||||
this.emptyMerge = this.data[$getChildren]().length === 0;
|
||||
|
||||
this.root.form = this.form = root.template[$clone]();
|
||||
@ -137,7 +136,7 @@ class Binder {
|
||||
}
|
||||
}
|
||||
if (
|
||||
dataNode[$namespaceId] === NamespaceIds.datasets.id &&
|
||||
dataNode[$namespaceId] === NS_DATASETS &&
|
||||
dataNode[$nodeName] === "data"
|
||||
) {
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user