#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:
@@ -267,11 +267,10 @@ OpenLayers.Map.prototype = {
|
||||
|
||||
this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_");
|
||||
|
||||
|
||||
this.div = div = OpenLayers.Util.getElement(div);
|
||||
this.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 @@ OpenLayers.Map.prototype = {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user