Remove extra event firing logic from Layer::setVisibility
This commit is contained in:
1 parent
f17a3c70e4
commit
e8cc0deeb5
2 files changed
+4
-7
No files matched your search
@@ -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