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.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2007-12-21 07:28:05 +00:00
parent c056118b59
commit 2447848e7f
2 changed files with 7 additions and 21 deletions

View File

@@ -361,9 +361,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
* {DOMElement} The specific render engine's root element
*/
createRenderRoot: function() {
var id = this.container.id + "_vmlRoot";
var rendererRoot = this.nodeFactory(id, "div");
return rendererRoot;
return this.nodeFactory(this.container.id + "_vmlRoot", "div");
},
/**
@@ -374,9 +372,7 @@ OpenLayers.Renderer.VML = OpenLayers.Class(OpenLayers.Renderer.Elements, {
* {DOMElement} The main root element to which we'll add vectors
*/
createRoot: function() {
var id = this.container.id + "_root";
var root = this.nodeFactory(id, "v:group");
return root;
return this.nodeFactory(this.container.id + "_root", "v:group");
},
/**************************************