The Code is under src \ core \ ext. js in ext.
The latest ext3.0beat1 code is as follows:
Copy codeThe Code is as follows:
Ua = navigator. userAgent. toLowerCase (),
Check = function (r ){
Return r. test (ua );
},
IsStrict = document. compatMode = "CSS1Compat ",
IsOpera = check (/opera /),
IsChrome = check (/chrome /),
IsWebKit = check (/webkit /),
IsSafari =! IsChrome & check (/safari /),
IsSafari3 = isSafari & check (/version \/3 /),
IsSafari4 = isSafari & check (/version \/4 /),
IsIE =! IsOpera & check (/msie /),
IsIE7 = isIE & check (/msie 7 /),
IsIE8 = isIE & check (/msie 8 /),
IsGecko =! IsWebKit & check (/gecko /),
IsGecko3 = isGecko & check (/rv: 1 \. 9 /),
IsBorderBox = isIE &&! IsStrict,
IsWindows = check (/windows | win32 /),
IsMac = check (/macintosh | mac OS x /),
IsAir = check (/adobeair /),
IsLinux = check (/linux /),
IsSecure =/^ https/I. test (window. location. protocol );
Under 2.2.1 (in source \ core \ ext. js ),
Copy codeThe Code is as follows:
Var ua = navigator. userAgent. toLowerCase ();
Var isStrict = document. compatMode = "CSS1Compat ",
IsOpera = ua. indexOf ("opera")>-1,
IsChrome = ua. indexOf ("chrome")>-1,
IsSafari =! IsChrome & (/webkit | khtml/). test (ua ),
IsSafari3 = isSafari & ua. indexOf ('webkit/5 ')! =-1,
IsIE =! IsOpera & ua. indexOf ("msie")>-1,
IsIE7 =! IsOpera & ua. indexOf ("msie 7")>-1,
IsIE8 =! IsOpera & ua. indexOf ("msie 8")>-1,
IsGecko =! IsSafari &&! IsChrome & ua. indexOf ("gecko")>-1,
IsGecko3 = isGecko & ua. indexOf ("rv: 1.9")>-1,
IsBorderBox = isIE &&! IsStrict,
IsWindows = (ua. indexOf ("windows ")! =-1 | ua. indexOf ("win32 ")! =-1 ),
IsMac = (ua. indexOf ("macintosh ")! =-1 | ua. indexOf ("mac OS x ")! =-1 ),
IsAir = (ua. indexOf ("adobeair ")! =-1 ),
IsLinux = (ua. indexOf ("linux ")! =-1 ),
IsSecure = window. location. href. toLowerCase (). indexOf ("https") = 0;