readibility / coding standards
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1007 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user