diff --git a/src/viewer.js b/src/viewer.js index 5f835488..b6f0fbcf 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -997,7 +997,11 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, if (propagate) { for (var i = 0; i < this.world.getItemCount(); i++) { - this.world.getItemAt(i)._updateAjaxHeaders(true); + this.world.getItemAt(i).updateAjaxHeaders(true); + } + + if (this.navigator) { + this.navigator.setAjaxHeaders(this.ajaxHeaders, true); } if (this.referenceStrip && this.referenceStrip.miniViewers) { @@ -1431,7 +1435,6 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, * @param {Object} [options.ajaxHeaders] * A set of headers to include when making tile AJAX requests. * Note that these headers will be merged over any headers specified in {@link OpenSeadragon.Options}. - * Is this outdated? -> Specifying a falsy value for a header will clear its existing value set at the Viewer level (if any). * requests. * @param {Function} [options.success] A function that gets called when the image is * successfully added. It's passed the event object which contains a single property: diff --git a/test/modules/ajax-tiles.js b/test/modules/ajax-tiles.js index 676a250a..39a37876 100644 --- a/test/modules/ajax-tiles.js +++ b/test/modules/ajax-tiles.js @@ -306,7 +306,7 @@ viewer.open(customTileSource); }); - QUnit.test('TileImage headers can be updated', function(assert) { + QUnit.test('TiledImage headers can be updated', function(assert) { var done = assert.async(); var tileSourceHeaders = {