mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Add Destroy to view managers
This commit is contained in:
parent
db727b00a9
commit
d95ec97f7f
10 changed files with 118 additions and 59 deletions
|
@ -72,7 +72,7 @@ class Queue {
|
|||
dequeue(){
|
||||
var inwait, task, result;
|
||||
|
||||
if(this._q.length) {
|
||||
if(this._q.length && !this.paused) {
|
||||
inwait = this._q.shift();
|
||||
task = inwait.task;
|
||||
if(task){
|
||||
|
@ -178,6 +178,7 @@ class Queue {
|
|||
clear(){
|
||||
this._q = [];
|
||||
this.running = false;
|
||||
this.paused = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue