Fix setting opacity multiple times in oldie. Was disabling the filter if it should be enabled and vice-versa

This commit is contained in:
danzel 2012-08-02 11:31:20 +12:00 committed by Vladimir Agafonkin
parent 1b88497f44
commit 8d4d347ec9

View File

@ -121,7 +121,7 @@ L.DomUtil = {
value = Math.round(value * 100);
if (filter) {
filter.Enabled = (value === 100);
filter.Enabled = (value !== 100);
filter.Opacity = value;
} else {
el.style.filter += ' progid:' + filterName + '(opacity=' + value + ')';