mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
found local variable navControl that should have been a property of Viewer. removed getNavControl accessor in favor of direct property access
This commit is contained in:
parent
3e39bccbbe
commit
7cac08a2f4
@ -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}
|
||||
|
||||
|
@ -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);
|
||||
},
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user