Remove extra event firing logic from Layer::setVisibility

This commit is contained in:
Matt Priour
2012-10-09 12:21:25 -05:00
parent f17a3c70e4
commit e8cc0deeb5
2 changed files with 4 additions and 7 deletions

View File

@@ -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");
}
},