Skip to content

Commit

Permalink
make TiledImageStore.Fixed.getZoom() a private method
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Mar 16, 2012
1 parent 4c34db3 commit 4968423
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/TiledImageStore/Fixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ TiledImageStore.Fixed.prototype.loadSuccess = function(o) {
this.setLoaded();
};

TiledImageStore.Fixed.prototype.getZoom = function(scale) {
/**
* @private
*/
TiledImageStore.Fixed.prototype._getZoom = function(scale) {
var result = this.zoomCache[scale];
if (result) return result;

Expand All @@ -63,7 +66,7 @@ TiledImageStore.Fixed.prototype.getZoom = function(scale) {
*/
TiledImageStore.Fixed.prototype.getImages = function( scale, startBase, endBase ) {

var zoom = this.getZoom( scale );
var zoom = this._getZoom( scale );

var startTile = Math.max( startBase / zoom.basesPerTile, 0 ) | 0;
var endTile = endBase / zoom.basesPerTile | 0;
Expand Down

0 comments on commit 4968423

Please sign in to comment.