[OpenLayers-Commits] r3630 - trunk/openlayers/lib/OpenLayers
commits at openlayers.org
commits at openlayers.org
Fri Jul 6 16:28:52 EDT 2007
Author: tschaub
Date: 2007-07-06 16:28:48 -0400 (Fri, 06 Jul 2007)
New Revision: 3630
Modified:
trunk/openlayers/lib/OpenLayers/Map.js
Log:
#811 - removing double assignment and using only this.div after it has been set
Modified: trunk/openlayers/lib/OpenLayers/Map.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Map.js 2007-07-06 20:27:08 UTC (rev 3629)
+++ trunk/openlayers/lib/OpenLayers/Map.js 2007-07-06 20:28:48 UTC (rev 3630)
@@ -267,11 +267,10 @@
this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_");
+ this.div = OpenLayers.Util.getElement(div);
- this.div = div = OpenLayers.Util.getElement(div);
-
// the viewPortDiv is the outermost div we modify
- var id = div.id + "_OpenLayers_ViewPort";
+ var id = this.div.id + "_OpenLayers_ViewPort";
this.viewPortDiv = OpenLayers.Util.createDiv(id, null, null, null,
"relative", null,
"hidden");
@@ -281,14 +280,14 @@
this.div.appendChild(this.viewPortDiv);
// the layerContainerDiv is the one that holds all the layers
- id = div.id + "_OpenLayers_Container";
+ id = this.div.id + "_OpenLayers_Container";
this.layerContainerDiv = OpenLayers.Util.createDiv(id);
this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE['Popup']-1;
this.viewPortDiv.appendChild(this.layerContainerDiv);
this.events = new OpenLayers.Events(this,
- div,
+ this.div,
this.EVENT_TYPES,
this.fallThrough);
this.updateSize();
More information about the Commits
mailing list