Satisfy JSLint

JSLint complains about functions being declared in blocks.
This commit is contained in:
Tom Payne
2013-02-21 15:11:09 +01:00
parent 528caa08c2
commit fabcb313f1
4 changed files with 8 additions and 8 deletions

View File

@@ -93,9 +93,9 @@ ol.renderer.dom.TileLayer.prototype.renderFrame =
var tilesToDrawByZ = {};
tilesToDrawByZ[z] = {};
function isLoaded(tile) {
var isLoaded = function(tile) {
return !goog.isNull(tile) && tile.getState() == ol.TileState.LOADED;
}
};
var findLoadedTiles = goog.bind(tileSource.findLoadedTiles, tileSource,
tilesToDrawByZ, isLoaded);