replace useage of OpenLayers.Util.setOpacity() with OpenLayers.Util.modifyDOMElement(). Rewrite the former to use the latter, and mark the former as deprecated.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1551 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-03 19:38:15 +00:00
parent 7fa0910fcf
commit 25da469210
3 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -464,7 +464,8 @@ OpenLayers.Layer.prototype = {
this.opacity = opacity;
for(var i=0; i<this.div.childNodes.length; ++i) {
var element = this.div.childNodes[i];
OpenLayers.Util.setOpacity(element, opacity);
OpenLayers.Util.modifyDOMElement(element, null, null, null,
null, null, null, opacity);
}
},