mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +03:00
process ready items always even if others fail
This commit is contained in:
parent
4808d7f54d
commit
101a734aaf
@ -10,7 +10,7 @@
|
|||||||
],
|
],
|
||||||
"linebreak-style": [
|
"linebreak-style": [
|
||||||
"error",
|
"error",
|
||||||
"unix"
|
"windows"
|
||||||
],
|
],
|
||||||
"quotes": [
|
"quotes": [
|
||||||
"off",
|
"off",
|
||||||
|
@ -1383,11 +1383,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
|
|
||||||
this._loadQueue.push(myQueueItem);
|
this._loadQueue.push(myQueueItem);
|
||||||
|
|
||||||
getTileSourceImplementation( this, options.tileSource, options, function( tileSource ) {
|
function processReadyItems() {
|
||||||
|
|
||||||
myQueueItem.tileSource = tileSource;
|
|
||||||
|
|
||||||
// add everybody at the front of the queue that's ready to go
|
|
||||||
var queueItem, tiledImage, optionsClone;
|
var queueItem, tiledImage, optionsClone;
|
||||||
while (_this._loadQueue.length) {
|
while (_this._loadQueue.length) {
|
||||||
queueItem = _this._loadQueue[0];
|
queueItem = _this._loadQueue[0];
|
||||||
@ -1473,9 +1469,20 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getTileSourceImplementation( this, options.tileSource, options, function( tileSource ) {
|
||||||
|
|
||||||
|
myQueueItem.tileSource = tileSource;
|
||||||
|
|
||||||
|
// add everybody at the front of the queue that's ready to go
|
||||||
|
processReadyItems();
|
||||||
}, function( event ) {
|
}, function( event ) {
|
||||||
event.options = options;
|
event.options = options;
|
||||||
raiseAddItemFailed(event);
|
raiseAddItemFailed(event);
|
||||||
|
|
||||||
|
// add everybody at the front of the queue that's ready to go
|
||||||
|
processReadyItems();
|
||||||
} );
|
} );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user