drop ie6 png24 hack, drop Browser.ie6/7 props

This commit is contained in:
Vladimir Agafonkin 2013-11-08 16:00:55 +02:00
parent 698fb2e877
commit e45db4cd5b
2 changed files with 2 additions and 17 deletions

View File

@ -5,8 +5,6 @@
(function () {
var ie = 'ActiveXObject' in window,
ie6 = ie && !window.XMLHttpRequest,
ie7 = ie && !document.querySelector,
ielt9 = ie && !document.addEventListener,
// terrible browser detection to work around Safari / iOS / Android browser bugs
@ -69,8 +67,6 @@
L.Browser = {
ie: ie,
ie6: ie6,
ie7: ie7,
ielt9: ielt9,
webkit: webkit,
gecko: gecko && !webkit && !window.opera && !ie,

View File

@ -80,19 +80,8 @@ L.Icon = L.Class.extend({
},
_createImg: function (src, el) {
if (!L.Browser.ie6) {
if (!el) {
el = document.createElement('img');
}
el.src = src;
} else {
if (!el) {
el = document.createElement('div');
}
el.style.filter =
'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + src + '")';
}
el = el || document.createElement('img');
el.src = src;
return el;
},