Merge pull request #600 from DamonOehlman/filter-tweak

Tweaked DOM util opacity to only apply in IE when opacity !== 1
This commit is contained in:
Vladimir Agafonkin 2012-03-26 13:52:51 -07:00
commit 409e5d729b

View File

@ -98,7 +98,7 @@ L.DomUtil = {
setOpacity: function (el, value) {
if (L.Browser.ie) {
el.style.filter = 'alpha(opacity=' + Math.round(value * 100) + ')';
el.style.filter = value !== 1 ? 'alpha(opacity=' + Math.round(value * 100) + ')' : '';
} else {
el.style.opacity = value;
}