mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +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
|
// Task is a function that returns a promise
|
||||||
return result.then(function(){
|
return result.then(function(){
|
||||||
inwait.deferred.resolve.apply(this.context, arguments);
|
inwait.deferred.resolve.apply(this.context, arguments);
|
||||||
|
}, function(reason) {
|
||||||
|
inwait.deferred.reject.apply(this.context, arguments);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
} else {
|
} else {
|
||||||
// Task resolves immediately
|
// Task resolves immediately
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue