From 31716bf56d2082b6deeb33fe19dc4a4abb84d017 Mon Sep 17 00:00:00 2001 From: Ventero Date: Sat, 29 Sep 2012 14:18:32 +0200 Subject: [PATCH] Use correct option name (displayRects, not dispRects) in DziTileSource. --- openseadragon.js | 8 ++++---- src/dzitilesource.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/openseadragon.js b/openseadragon.js index b002a24f..7b0efbf6 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -5604,7 +5604,7 @@ $.DziTileSource = function( width, height, tileSize, tileOverlap, tilesUrl, file tileOverlap: arguments[ 3 ], tilesUrl: arguments[ 4 ], fileFormat: arguments[ 5 ], - dispRects: arguments[ 6 ] + displayRects: arguments[ 6 ] }; } @@ -5856,7 +5856,7 @@ function configureFromObject( tileSource, configuration ){ height = parseInt( sizeData.Height ), tileSize = parseInt( imageData.TileSize ), tileOverlap = parseInt( imageData.Overlap ), - dispRects = [], + displayRects = [], rectData, i; @@ -5876,7 +5876,7 @@ function configureFromObject( tileSource, configuration ){ for ( i = 0; i < dispRectData.length; i++ ) { rectData = dispRectData[ i ].Rect; - dispRects.push( new $.DisplayRect( + displayRects.push( new $.DisplayRect( parseInt( rectData.X ), parseInt( rectData.Y ), parseInt( rectData.Width ), @@ -5896,7 +5896,7 @@ function configureFromObject( tileSource, configuration ){ maxLevel: null, /* maxLevel */ tilesUrl: tilesUrl, /* tilesUrl */ fileFormat: fileFormat, /* fileFormat */ - dispRects: dispRects /* dispRects */ + displayRects: displayRects /* displayRects */ }; }; diff --git a/src/dzitilesource.js b/src/dzitilesource.js index b6f8db63..cfdfe436 100644 --- a/src/dzitilesource.js +++ b/src/dzitilesource.js @@ -32,7 +32,7 @@ $.DziTileSource = function( width, height, tileSize, tileOverlap, tilesUrl, file tileOverlap: arguments[ 3 ], tilesUrl: arguments[ 4 ], fileFormat: arguments[ 5 ], - dispRects: arguments[ 6 ] + displayRects: arguments[ 6 ] }; } @@ -284,7 +284,7 @@ function configureFromObject( tileSource, configuration ){ height = parseInt( sizeData.Height ), tileSize = parseInt( imageData.TileSize ), tileOverlap = parseInt( imageData.Overlap ), - dispRects = [], + displayRects = [], rectData, i; @@ -304,7 +304,7 @@ function configureFromObject( tileSource, configuration ){ for ( i = 0; i < dispRectData.length; i++ ) { rectData = dispRectData[ i ].Rect; - dispRects.push( new $.DisplayRect( + displayRects.push( new $.DisplayRect( parseInt( rectData.X ), parseInt( rectData.Y ), parseInt( rectData.Width ), @@ -324,7 +324,7 @@ function configureFromObject( tileSource, configuration ){ maxLevel: null, /* maxLevel */ tilesUrl: tilesUrl, /* tilesUrl */ fileFormat: fileFormat, /* fileFormat */ - dispRects: dispRects /* dispRects */ + displayRects: displayRects /* displayRects */ }; };