Commit fix for "getGridBounds calls 'getTileBounds' instead of

this.getTileBounds", #840. Reviewed by Euz.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3753 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-07-15 19:47:46 +00:00
parent 6ef37907cf
commit aad458eeb4
2 changed files with 5 additions and 1 deletions

View File

@@ -217,7 +217,7 @@ OpenLayers.Layer.Grid.prototype =
var msg = "The getGridBounds() function is deprecated. It will be " +
"removed in 3.0. Please use getTilesBounds() instead.";
OpenLayers.Console.warn(msg);
return getTilesBounds();
return this.getTilesBounds();
},
/**

View File

@@ -107,6 +107,10 @@
t.ok( bounds.equals(testBounds), "getTilesBounds() returns correct bounds");
var bounds = layer.getGridBounds();
t.ok( bounds.equals(testBounds), "getGridBounds() wrapper works the same as getTilesBounds.");
//no tiles
layer.grid = new Array();
bounds = layer.getTilesBounds();