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