drop ie6 png24 hack, drop Browser.ie6/7 props
This commit is contained in:
parent
698fb2e877
commit
e45db4cd5b
@ -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,
|
||||
|
@ -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;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user