Permalink
Browse files

Revert, merge later commit

  • Loading branch information...
2 parents 5ea22cb + 4e8444a commit 6ce7711d3d2b8a8fae5b6ae339b9fadc445473d0 @tmcw tmcw committed Feb 28, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 modestmaps.js
  2. +1 −1 modestmaps.min.js
  3. +2 −2 src/layer.js
View
@@ -1757,7 +1757,7 @@ var MM = com.modestmaps = {
provider: null,
recentTiles: null,
- recentTilesById: null,
+ recentTilesById: {},
enablePyramidLoading: false,
@@ -2148,7 +2148,7 @@ var MM = com.modestmaps = {
});
}
- while (this.tileCacheSize > maxTiles) {
+ while (this.recentTiles.length && this.tileCacheSize > maxTiles) {
// delete the oldest record
var tileRecord = this.recentTiles.pop();
var now = new Date().getTime();
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -28,7 +28,7 @@
provider: null,
recentTiles: null,
- recentTilesById: null,
+ recentTilesById: {},
enablePyramidLoading: false,
@@ -419,7 +419,7 @@
});
}
- while (this.tileCacheSize > maxTiles) {
+ while (this.recentTiles.length && this.tileCacheSize > maxTiles) {
// delete the oldest record
var tileRecord = this.recentTiles.pop();
var now = new Date().getTime();

0 comments on commit 6ce7711

Please sign in to comment.