CloudMade/Leaflet — pull request #827 by ajbeaven (2012-07-25 04:50:29+00:00)
Title: Fixes popups in IE8 and earlier

A bit of contentious code here it seems.

Pull request #667 seems to have broken popups in IE. This happens because in the onAdd function in L.Popup, uses setOpacity we make opacity 0, and then later on sets it to 1. setOpacity as it is written now means that we can never set opacity to 1.

The following code is to fix #600, but personally I don't think it should be there:

if (value === 100) {
if (filter) {
filter.Enabled = false;
}
} else {
// ...
}

And should instead be fixed using css:

.leaflet-marker-icon {
background: transparent;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE8 */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); /* IE6 & 7 */
zoom: 1;
}

But I'll let someone else make that decision :)