reverting r12185 from #3431
git-svn-id: http://svn.openlayers.org/branches/openlayers/2.11@12232 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -349,11 +349,6 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
this.div.style.width = "100%";
|
||||
this.div.style.height = "100%";
|
||||
this.div.dir = "ltr";
|
||||
if (this.opacity != null) {
|
||||
OpenLayers.Util.modifyDOMElement(
|
||||
this.div, null, null, null, null, null, null, this.opacity
|
||||
);
|
||||
}
|
||||
|
||||
this.events = new OpenLayers.Events(this, this.div,
|
||||
this.EVENT_TYPES);
|
||||
@@ -1274,8 +1269,11 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
setOpacity: function(opacity) {
|
||||
if (opacity != this.opacity) {
|
||||
this.opacity = opacity;
|
||||
OpenLayers.Util.modifyDOMElement(this.div, null, null, null,
|
||||
null, null, null, opacity);
|
||||
for(var i=0, len=this.div.childNodes.length; i<len; ++i) {
|
||||
var element = this.div.childNodes[i].firstChild;
|
||||
OpenLayers.Util.modifyDOMElement(element, null, null, null,
|
||||
null, null, null, opacity);
|
||||
}
|
||||
if (this.map != null) {
|
||||
this.map.events.triggerEvent("changelayer", {
|
||||
layer: this,
|
||||
|
||||
Reference in New Issue
Block a user