Skip to content

Commit

Permalink
changed parameter variable name to layer
Browse files Browse the repository at this point in the history
  • Loading branch information
emoen committed Mar 27, 2014
1 parent 6add5bc commit b751558
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/OpenLayers/Control/SelectFeature.js
Expand Up @@ -646,18 +646,18 @@ OpenLayers.Control.SelectFeature = OpenLayers.Class(OpenLayers.Control, {
* Parameters:
* layer - element <OpenLayers.Layer.Vector>
*/
addLayer: function( alayer ) {
addLayer: function( layer ) {
var isActive = this.active;
this.deactivate();
if (this.layers == null) {
if (this.layer != null) {
this.layers = [this.layer];
this.layers.push(alayer);
this.layers.push(layer);
} else {
this.layers = [alayer];
this.layers = [layer];
}
} else {
this.layers.push(alayer);
this.layers.push(layer);
}
this.initLayer(this.layers);
this.handlers.feature.layer = this.layer;
Expand Down

0 comments on commit b751558

Please sign in to comment.