2 var ua
= navigator
.userAgent
.toLowerCase(),
3 ie
= !!window
.ActiveXObject
,
4 webkit
= ua
.indexOf("webkit") != -1,
5 mobile
= ua
.indexOf("mobi") != -1,
6 android
= ua
.indexOf("android") != -1,
11 ie6
: ie
&& !window
.XMLHttpRequest
,
13 webkit3d
: webkit
&& ('WebKitCSSMatrix' in window
) && ('m11' in new WebKitCSSMatrix()),
14 mobileWebkit
: webkit
&& (mobile
|| android
),
15 mobileOpera
: mobile
&& opera
,
16 gecko
: ua
.indexOf("gecko") != -1,
20 //TODO replace ugly ua sniffing with feature detection
22 L
.Browser
.touch
= L
.Browser
.mobileWebkit
|| L
.Browser
.mobileOpera
;