mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
cf063a71f5
@ -673,7 +673,8 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
|
|
||||||
THIS[ this.hash ].animating = false;
|
THIS[ this.hash ].animating = false;
|
||||||
this.world.removeAll();
|
this.world.removeAll();
|
||||||
|
this.imageLoader.clear();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Raised when the viewer is closed (see {@link OpenSeadragon.Viewer#close}).
|
* Raised when the viewer is closed (see {@link OpenSeadragon.Viewer#close}).
|
||||||
*
|
*
|
||||||
|
@ -183,6 +183,7 @@ $.extend( $.World.prototype, $.EventSource.prototype, /** @lends OpenSeadragon.W
|
|||||||
}
|
}
|
||||||
|
|
||||||
item.removeHandler('bounds-change', this._delegatedFigureSizes);
|
item.removeHandler('bounds-change', this._delegatedFigureSizes);
|
||||||
|
item.destroy();
|
||||||
this._items.splice( index, 1 );
|
this._items.splice( index, 1 );
|
||||||
this._figureSizes();
|
this._figureSizes();
|
||||||
this._needsDraw = true;
|
this._needsDraw = true;
|
||||||
@ -199,6 +200,7 @@ $.extend( $.World.prototype, $.EventSource.prototype, /** @lends OpenSeadragon.W
|
|||||||
for (var i = 0; i < this._items.length; i++) {
|
for (var i = 0; i < this._items.length; i++) {
|
||||||
item = this._items[i];
|
item = this._items[i];
|
||||||
item.removeHandler('bounds-change', this._delegatedFigureSizes);
|
item.removeHandler('bounds-change', this._delegatedFigureSizes);
|
||||||
|
item.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
var removedItems = this._items;
|
var removedItems = this._items;
|
||||||
|
Loading…
Reference in New Issue
Block a user