Changeset 965
- Timestamp:
- 02/04/08 22:06:18 (5 years ago)
- Files:
-
- 1 modified
-
trunk/XinhaCore.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r962 r965 143 143 */ 144 144 Xinha.is_webkit = (Xinha.agt.indexOf("applewebkit") != -1); 145 Xinha.webkit_version = parseInt(navigator.appVersion.replace(/.*?AppleWebKit\/([\d]).*?/,'$1')); 146 alert(Xinha.webkit_version); 145 147 /** Browser is Safari 146 148 @type string … … 164 166 Xinha.is_gecko = (navigator.product == "Gecko"); 165 167 Xinha.is_real_gecko = (navigator.product == "Gecko" && !Xinha.is_webkit); 168 Xinha.is_ff3 = Xinha.is_real_gecko && parseInt(navigator.productSub) >= 2007121016; 169 Xinha.is_ff2 = Xinha.is_real_gecko && parseInt(navigator.productSub) < 2007121016; 170 166 171 /** File is opened locally opened ("file://" protocol) 167 172 * @type string … … 186 191 return false; 187 192 } 188 return Xinha.is_ gecko || (Xinha.is_opera && 0 && Xinha.opera_version >= 9.1) || Xinha.ie_version >= 5.5;193 return Xinha.is_real_gecko || (Xinha.is_opera && 0 && Xinha.opera_version >= 9.1) || Xinha.ie_version >= 5.5 || Xinha.webkit_version >= 522; 189 194 }; 190 195 /** Cache result of checking for browser support
