Add ie7 browser detection :(

This commit is contained in:
danzel 2012-10-29 11:44:05 +13:00
parent b6ae1259f0
commit 6b181f697a

View File

@ -1,7 +1,9 @@
(function () {
var ie = !!window.ActiveXObject,
// http://tanalin.com/en/articles/ie-version-js/
ie6 = ie && !window.XMLHttpRequest,
ie7 = ie && !document.querySelector,
// terrible browser detection to work around Safari / iOS / Android browser bugs
// see TileLayer._addTile and debug/hacks/jitter.html
@ -56,6 +58,7 @@
L.Browser = {
ie6: ie6,
ie7: ie7,
webkit: webkit,
android: android,