Don't add a dependency to the array if the array already contains it
This commit is contained in:
parent
0e8952681b
commit
9c58cd4817
5
pdf.js
5
pdf.js
@ -4173,7 +4173,10 @@ var PartialEvaluator = (function() {
|
|||||||
fnArray.push("dependency");
|
fnArray.push("dependency");
|
||||||
argsArray.push(depList);
|
argsArray.push(depList);
|
||||||
for (var i = 0; i < depList.length; i++) {
|
for (var i = 0; i < depList.length; i++) {
|
||||||
dependency.push(depList[i]);
|
var dep = depList[i];
|
||||||
|
if (dependency.indexOf(dep) == -1) {
|
||||||
|
dependency.push(depList[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user