Remove extra event firing logic from Layer::setVisibility
This commit is contained in:
@@ -736,12 +736,6 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
this.visibility = visibility;
|
||||
this.display(visibility);
|
||||
this.redraw();
|
||||
if (this.map != null) {
|
||||
this.map.events.triggerEvent("changelayer", {
|
||||
layer: this,
|
||||
property: "visibility"
|
||||
});
|
||||
}
|
||||
this.events.triggerEvent("visibilitychanged");
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user