mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Make sure resolving the promise sets some data
This commit is contained in:
parent
db627c4082
commit
0c22e5d653
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ var Promise = (function PromiseClosure() {
|
|||
}
|
||||
|
||||
this.isResolved = true;
|
||||
this.data = data;
|
||||
this.data = data || null;
|
||||
var callbacks = this.callbacks;
|
||||
|
||||
for (var i = 0, ii = callbacks.length; i < ii; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue