mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Make updateAjaxHeaders
private
This commit is contained in:
parent
e983bd8108
commit
4060dee4f9
@ -1033,24 +1033,22 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
|
|||||||
}
|
}
|
||||||
|
|
||||||
this._ownAjaxHeaders = ajaxHeaders;
|
this._ownAjaxHeaders = ajaxHeaders;
|
||||||
this.updateAjaxHeaders(propagate);
|
this._updateAjaxHeaders(propagate);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update headers to include when making AJAX requests.
|
* Update headers to include when making AJAX requests.
|
||||||
*
|
*
|
||||||
* This function has the same effect as calling {@link OpenSeadragon.TiledImage#setAjaxHeaders},
|
* This function has the same effect as calling {@link OpenSeadragon.TiledImage#setAjaxHeaders},
|
||||||
* expect that the headers for this tiled image do not change. This is especially useful
|
* except that the headers for this tiled image do not change. This is especially useful
|
||||||
* for propagating updated headers from {@link OpenSeadragon.TileSource#getTileAjaxHeaders}
|
* for propagating updated headers from {@link OpenSeadragon.TileSource#getTileAjaxHeaders}
|
||||||
* to existing tiles.
|
* to existing tiles.
|
||||||
*
|
*
|
||||||
* Note that `TiledImage.ajaxHeaders` might still change if {@link OpenSeadragon.Viewer#setAjaxHeaders}
|
* @private
|
||||||
* was previously called without propagating the updated headers (not recommended).
|
|
||||||
*
|
|
||||||
* @function
|
* @function
|
||||||
* @param {Boolean} [propagate=true] Whether to propagate updated headers to existing tiles and queued image loader jobs.
|
* @param {Boolean} [propagate=true] Whether to propagate updated headers to existing tiles and queued image loader jobs.
|
||||||
*/
|
*/
|
||||||
updateAjaxHeaders: function(propagate) {
|
_updateAjaxHeaders: function(propagate) {
|
||||||
if (propagate === undefined) {
|
if (propagate === undefined) {
|
||||||
propagate = true;
|
propagate = true;
|
||||||
}
|
}
|
||||||
|
@ -665,7 +665,8 @@ $.TileSource.prototype = {
|
|||||||
* TiledImage level (if any).
|
* TiledImage level (if any).
|
||||||
*
|
*
|
||||||
* Note that the headers of existing tiles don't automatically change when this function
|
* Note that the headers of existing tiles don't automatically change when this function
|
||||||
* returns updated headers. To do that, you need to call {@link OpenSeadragon.TiledImage#updateAjaxHeaders}.
|
* returns updated headers. To do that, you need to call {@link OpenSeadragon.Viewer#setAjaxHeaders}
|
||||||
|
* and propagate the changes.
|
||||||
*
|
*
|
||||||
* @function
|
* @function
|
||||||
* @param {Number} level
|
* @param {Number} level
|
||||||
|
@ -1010,7 +1010,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
|
|
||||||
if (propagate) {
|
if (propagate) {
|
||||||
for (var i = 0; i < this.world.getItemCount(); i++) {
|
for (var i = 0; i < this.world.getItemCount(); i++) {
|
||||||
this.world.getItemAt(i).updateAjaxHeaders(true);
|
this.world.getItemAt(i)._updateAjaxHeaders(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.navigator) {
|
if (this.navigator) {
|
||||||
|
Loading…
Reference in New Issue
Block a user