#811 - removing double assignment and using only this.div after it has been set

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-07-06 20:28:48 +00:00
parent f8766140af
commit 0d596fbb03

View File

@@ -267,11 +267,10 @@ OpenLayers.Map.prototype = {
this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_"); 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 // 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, this.viewPortDiv = OpenLayers.Util.createDiv(id, null, null, null,
"relative", null, "relative", null,
"hidden"); "hidden");
@@ -281,14 +280,14 @@ OpenLayers.Map.prototype = {
this.div.appendChild(this.viewPortDiv); this.div.appendChild(this.viewPortDiv);
// the layerContainerDiv is the one that holds all the layers // 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 = OpenLayers.Util.createDiv(id);
this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE['Popup']-1; this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE['Popup']-1;
this.viewPortDiv.appendChild(this.layerContainerDiv); this.viewPortDiv.appendChild(this.layerContainerDiv);
this.events = new OpenLayers.Events(this, this.events = new OpenLayers.Events(this,
div, this.div,
this.EVENT_TYPES, this.EVENT_TYPES,
this.fallThrough); this.fallThrough);
this.updateSize(); this.updateSize();