readibility / coding standards

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-26 10:17:21 +00:00
parent 63396d27d0
commit 317c15a5ce
+7 -8
View File
@@ -152,14 +152,13 @@ OpenLayers.Map.prototype = {
this.layers = []; this.layers = [];
if (this.controls) { if (this.controls == null) {
for(var i=0; i < this.controls.length; i++) { this.controls = [ new OpenLayers.Control.MouseDefaults(),
this.addControlToMap(this.controls[i]); new OpenLayers.Control.PanZoom()];
} }
} else {
this.controls = []; for(var i=0; i < this.controls.length; i++) {
this.addControl(new OpenLayers.Control.MouseDefaults()); this.addControlToMap(this.controls[i]);
this.addControl(new OpenLayers.Control.PanZoom());
} }
this.popups = new Array(); this.popups = new Array();