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

View File

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