initial browser detection

This commit is contained in:
mourner 2010-09-13 18:17:17 +03:00
parent a9884f2388
commit a64b832e24

9
src/core/Browser.js Normal file
View File

@ -0,0 +1,9 @@
(function() {
var ua = navigator.userAgent.toLowerCase();
L.Browser = {
ie: !!window.ActiveXObject,
ie6: !!window.ActiveXObject && !window.XMLHttpRequest,
webkit: ua.indexOf("webkit") != -1
};
})();