OpenLayers OpenLayers

Changeset 3630

Show
Ignore:
Timestamp:
07/06/07 16:28:48 (1 year ago)
Author:
tschaub
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Map.js

    r3582 r3630  
    268268        this.id = OpenLayers.Util.createUniqueID("OpenLayers.Map_"); 
    269269 
    270  
    271         this.div = div = OpenLayers.Util.getElement(div); 
     270        this.div = OpenLayers.Util.getElement(div); 
    272271 
    273272        // the viewPortDiv is the outermost div we modify 
    274         var id = div.id + "_OpenLayers_ViewPort"; 
     273        var id = this.div.id + "_OpenLayers_ViewPort"; 
    275274        this.viewPortDiv = OpenLayers.Util.createDiv(id, null, null, null, 
    276275                                                     "relative", null, 
     
    282281 
    283282        // the layerContainerDiv is the one that holds all the layers 
    284         id = div.id + "_OpenLayers_Container"; 
     283        id = this.div.id + "_OpenLayers_Container"; 
    285284        this.layerContainerDiv = OpenLayers.Util.createDiv(id); 
    286285        this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE['Popup']-1; 
     
    289288 
    290289        this.events = new OpenLayers.Events(this,  
    291                                             div,  
     290                                            this.div,  
    292291                                            this.EVENT_TYPES,  
    293292                                            this.fallThrough);