mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Be sure that CalculationOrder is either null or a non-empty array
This commit is contained in:
parent
b194c820bf
commit
25bf504ff5
3 changed files with 13 additions and 2 deletions
|
@ -150,7 +150,7 @@ class EventDispatcher {
|
|||
}
|
||||
|
||||
calculateNow() {
|
||||
if (this._calculationOrder.length === 0) {
|
||||
if (!this._calculationOrder) {
|
||||
return;
|
||||
}
|
||||
const first = this._calculationOrder[0];
|
||||
|
@ -160,7 +160,7 @@ class EventDispatcher {
|
|||
}
|
||||
|
||||
runCalculate(source, event) {
|
||||
if (this._calculationOrder.length === 0) {
|
||||
if (!this._calculationOrder) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue