Revert "Merge pull request #432 from ahocevar/iframe-opacity"

This reverts commit af046b9af8, reversing
changes made to f36fd5f0d1. The reason for reverting this is that the change breaks the select-feature-multilayer.html example.
This commit is contained in:
ahocevar
2012-04-23 18:03:39 -04:00
parent af046b9af8
commit a57c56ed96
3 changed files with 3 additions and 8 deletions

View File

@@ -1286,12 +1286,7 @@ OpenLayers.Layer = OpenLayers.Class({
this.opacity = opacity;
var childNodes = this.div.childNodes;
for(var i = 0, len = childNodes.length; i < len; ++i) {
var element = childNodes[i].lastChild || childNodes[i];
if (element.nodeName.toLowerCase() === "iframe") {
// changing opacity on IFrame elements does not work, so
// we set it on the parent
element = element.parentNode;
}
var element = childNodes[i].firstChild || childNodes[i];
OpenLayers.Util.modifyDOMElement(element, null, null, null,
null, null, null, opacity);
}