readability fix for setTileSize(). No reason to be re-declaring the size variable -- it already exists as a parameter. Thanks to pvalsecc for spotting this one. :-) (See #1094)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@4991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-10-17 15:28:54 +00:00
parent faac1f98c9
commit 4564090ee7

View File

@@ -204,7 +204,7 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
*/
setTileSize: function(size) {
if (this.singleTile) {
var size = this.map.getSize().clone();
size = this.map.getSize().clone();
size.h = parseInt(size.h * this.ratio);
size.w = parseInt(size.w * this.ratio);
}