diff --git a/build.properties b/build.properties index 98f78e2d..ce13e79c 100644 --- a/build.properties +++ b/build.properties @@ -6,7 +6,7 @@ PROJECT: openseadragon BUILD_MAJOR: 0 BUILD_MINOR: 8 -BUILD_ID: 09 +BUILD_ID: 10 BUILD: ${PROJECT}.${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID} VERSION: ${BUILD_MAJOR}.${BUILD_MINOR}.${BUILD_ID} diff --git a/openseadragon.js b/openseadragon.js index 13f71ee9..552dc40a 100644 --- a/openseadragon.js +++ b/openseadragon.js @@ -3,7 +3,7 @@ * (c) 2010 OpenSeadragon * (c) 2010 CodePlex Foundation * - * OpenSeadragon 0.8.09 + * OpenSeadragon 0.8.10 * ---------------------------------------------------------------------------- * * License: New BSD License (BSD) @@ -1636,11 +1636,12 @@ $.Viewer = function( options ) { } } + this.navControl = null; if ( this.config.showNavigationControl ) { - navControl = (new $.NavControl(this)).elmt; - navControl.style.marginRight = "4px"; - navControl.style.marginBottom = "4px"; - this.addControl(navControl, $.ControlAnchor.BOTTOM_RIGHT); + this.navControl = (new $.NavControl(this)).elmt; + this.navControl.style.marginRight = "4px"; + this.navControl.style.marginBottom = "4px"; + this.addControl(this.navControl, $.ControlAnchor.BOTTOM_RIGHT); } for ( i = 0; i < this.customControls.length; i++ ) { @@ -1723,9 +1724,6 @@ $.Viewer.prototype = { this.profiler.endUpdate(); }, - getNavControl: function () { - return this._navControl; - }, add_open: function (handler) { this.events.addHandler("open", handler); }, diff --git a/src/tilesource.js b/src/tilesource.js index d2ced150..5a3d9aa6 100644 --- a/src/tilesource.js +++ b/src/tilesource.js @@ -57,14 +57,18 @@ $.TileSource.prototype = { return new $.Rect(px * scale, py * scale, sx * scale, sy * scale); }, - getTileUrl: function(level, x, y) { + getTileUrl: function( level, x, y ) { throw new Error("Method not implemented."); }, - tileExists: function(level, x, y) { - var numTiles = this.getNumTiles(level); - return level >= this.minLevel && level <= this.maxLevel && - x >= 0 && y >= 0 && x < numTiles.x && y < numTiles.y; + tileExists: function( level, x, y ) { + var numTiles = this.getNumTiles( level ); + return level >= this.minLevel && + level <= this.maxLevel && + x >= 0 && + y >= 0 && + x < numTiles.x && + y < numTiles.y; } }; diff --git a/src/viewer.js b/src/viewer.js index 5b8fb317..4ce7e8d3 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -194,11 +194,12 @@ $.Viewer = function( options ) { } } + this.navControl = null; if ( this.config.showNavigationControl ) { - navControl = (new $.NavControl(this)).elmt; - navControl.style.marginRight = "4px"; - navControl.style.marginBottom = "4px"; - this.addControl(navControl, $.ControlAnchor.BOTTOM_RIGHT); + this.navControl = (new $.NavControl(this)).elmt; + this.navControl.style.marginRight = "4px"; + this.navControl.style.marginBottom = "4px"; + this.addControl(this.navControl, $.ControlAnchor.BOTTOM_RIGHT); } for ( i = 0; i < this.customControls.length; i++ ) { @@ -281,9 +282,6 @@ $.Viewer.prototype = { this.profiler.endUpdate(); }, - getNavControl: function () { - return this._navControl; - }, add_open: function (handler) { this.events.addHandler("open", handler); },