OpenLayers OpenLayers

Changeset 5552

Show
Ignore:
Timestamp:
12/21/07 02:28:05 (1 year ago)
Author:
fredj
Message:

Coding style: dont use local variable when it's not necessary, remove new lines.
No functional changes, tests pass on FF2, IE6, IE7 and safari 3.0.4 windows.

Files:

Legend:

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

    r5471 r5552  
    6262    supported: function() { 
    6363        var svgFeature = "http://www.w3.org/TR/SVG11/feature#SVG"; 
    64         var supported = (document.implementation &&  
    65                         (document.implementation.hasFeature("org.w3c.svg", "1.0") ||  
    66                          document.implementation.hasFeature(svgFeature, "1.1"))); 
    67         return supported; 
     64        return (document.implementation &&  
     65                (document.implementation.hasFeature("org.w3c.svg", "1.0") ||  
     66                 document.implementation.hasFeature(svgFeature, "1.1"))); 
    6867    },     
    6968 
     
    9594         
    9695        var resolution = this.getResolution(); 
    97          
    9896 
    9997        // If the resolution has changed, start over changing the corner, because 
     
    103101            this.top = extent.top / resolution; 
    104102        } 
    105  
    106103         
    107104        var left = 0; 
     
    139136        this.rendererRoot.setAttributeNS(null, "height", this.size.h); 
    140137    }, 
    141  
    142      
    143  
    144138 
    145139    /**  
     
    291285     */ 
    292286    createRenderRoot: function() { 
    293         var id = this.container.id + "_svgRoot"; 
    294         var rendererRoot = this.nodeFactory(id, "svg"); 
    295         return rendererRoot;                         
     287        return this.nodeFactory(this.container.id + "_svgRoot", "svg"); 
    296288    }, 
    297289 
     
    303295     */ 
    304296    createRoot: function() { 
    305         var id = this.container.id + "_root"; 
    306         var root = this.nodeFactory(id, "g"); 
    307         return root; 
     297        return this.nodeFactory(this.container.id + "_root", "g"); 
    308298    }, 
    309299 
  • trunk/openlayers/lib/OpenLayers/Renderer/VML.js

    r5488 r5552  
    362362     */ 
    363363    createRenderRoot: function() { 
    364         var id = this.container.id + "_vmlRoot"; 
    365         var rendererRoot = this.nodeFactory(id, "div"); 
    366         return rendererRoot;                         
     364        return this.nodeFactory(this.container.id + "_vmlRoot", "div"); 
    367365    }, 
    368366 
     
    375373     */ 
    376374    createRoot: function() { 
    377         var id = this.container.id + "_root"; 
    378         var root = this.nodeFactory(id, "v:group"); 
    379         return root; 
     375        return this.nodeFactory(this.container.id + "_root", "v:group"); 
    380376    }, 
    381377