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

View File

@@ -152,14 +152,13 @@ OpenLayers.Map.prototype = {
this.layers = [];
if (this.controls) {
for(var i=0; i < this.controls.length; i++) {
this.addControlToMap(this.controls[i]);
}
} else {
this.controls = [];
this.addControl(new OpenLayers.Control.MouseDefaults());
this.addControl(new OpenLayers.Control.PanZoom());
if (this.controls == null) {
this.controls = [ new OpenLayers.Control.MouseDefaults(),
new OpenLayers.Control.PanZoom()];
}
for(var i=0; i < this.controls.length; i++) {
this.addControlToMap(this.controls[i]);
}
this.popups = new Array();