From 537c2b21adf32e6a42dd305cf38c6d8daca848c2 Mon Sep 17 00:00:00 2001 From: Chili Johnson Date: Thu, 30 Mar 2023 10:49:22 -0700 Subject: [PATCH] Renames tileSourceLoaderLimit to ajaxLoaderLimit. --- src/openseadragon.js | 4 ++-- src/viewer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index cb9a534c..d5cd12d1 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -312,7 +312,7 @@ * it is set to 0 allowing the browser to make the maximum number of * image requests in parallel as allowed by the browsers policy. * - * @property {Number} [tileSourceLoaderLimit=0] + * @property {Number} [ajaxLoaderLimit=0] * The maximum number of tile source requests to make concurrently. By default * it is set to 0 allowing an unlimited number of concurrent requests. * @@ -1343,7 +1343,7 @@ function OpenSeadragon( options ){ //PERFORMANCE SETTINGS imageLoaderLimit: 0, - tileSourceLoaderLimit: 0, + ajaxLoaderLimit: 0, maxImageCacheCount: 200, timeout: 30000, useCanvas: true, // Use canvas element for drawing if available diff --git a/src/viewer.js b/src/viewer.js index 48a77bcc..d9a2dfc7 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -396,7 +396,7 @@ $.Viewer = function( options ) { // TODO: Instantiating a viewer shouldn't have // a side effect on the global queue - $.ajaxQueue.maxConcurrency = options.tileSourceLoaderLimit; + $.ajaxQueue.ajaxLoaderLimit = options.ajaxLoaderLimit; // Create the tile cache this.tileCache = new $.TileCache({