mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 21:26:10 +03:00
Use the right queue item's options when replacing an item.
This commit is contained in:
parent
14e86cd30b
commit
4b72399e8f
@ -1312,11 +1312,11 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
_this._loadQueue.splice(0, 1);
|
_this._loadQueue.splice(0, 1);
|
||||||
|
|
||||||
if (queueItem.options.replace) {
|
if (queueItem.options.replace) {
|
||||||
var newIndex = _this.world.getIndexOfItem(options.replaceItem);
|
var newIndex = _this.world.getIndexOfItem(queueItem.options.replaceItem);
|
||||||
if (newIndex != -1) {
|
if (newIndex != -1) {
|
||||||
options.index = newIndex;
|
queueItem.options.index = newIndex;
|
||||||
}
|
}
|
||||||
_this.world.removeItem(options.replaceItem);
|
_this.world.removeItem(queueItem.options.replaceItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
tiledImage = new $.TiledImage({
|
tiledImage = new $.TiledImage({
|
||||||
|
Loading…
Reference in New Issue
Block a user