From 8f0ded10924b574b2253a81046bfe50618c0ebc9 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 18 Oct 2007 16:25:43 +0000 Subject: [PATCH] remove added (but commented out) console.log() call from r5002. As long as we're going it, let's give our return string a better variable name and move the newParams into its own variable, too. no functional change here. all tests pass. git-svn-id: http://svn.openlayers.org/trunk/openlayers@5010 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WMS.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/OpenLayers/Layer/WMS.js b/lib/OpenLayers/Layer/WMS.js index 49bdb6a46a..325e6c2404 100644 --- a/lib/OpenLayers/Layer/WMS.js +++ b/lib/OpenLayers/Layer/WMS.js @@ -154,12 +154,13 @@ OpenLayers.Layer.WMS = OpenLayers.Class(OpenLayers.Layer.Grid, { bounds = this.adjustBounds(bounds); var imageSize = this.getImageSize(); - var s = this.getFullRequestString( - {BBOX: this.encodeBBOX ? bounds.toBBOX() : bounds.toArray(), - WIDTH:imageSize.w, - HEIGHT:imageSize.h}); - //console.log(s); - return s; + var newParams = { + BBOX: this.encodeBBOX ? bounds.toBBOX() : bounds.toArray(), + WIDTH:imageSize.w, + HEIGHT:imageSize.h + }; + var requestString = this.getFullRequestString(newParams); + return requestString; }, /**