mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
This commit is contained in:
parent
af5aa65f86
commit
af047c32e3
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ Queue.prototype.dequeue = function(){
|
|||
// Task is a function that returns a promise
|
||||
return result.then(function(){
|
||||
inwait.deferred.resolve.apply(this.context, arguments);
|
||||
}, function(reason) {
|
||||
inwait.deferred.reject.apply(this.context, arguments);
|
||||
}.bind(this));
|
||||
} else {
|
||||
// Task resolves immediately
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue