git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
34dd8af
)
Added checks for the box model.
author
John Resig
<jeresig@gmail.com>
Fri, 16 Jun 2006 00:05:56 +0000
(
00:05
+0000)
committer
John Resig
<jeresig@gmail.com>
Fri, 16 Jun 2006 00:05:56 +0000
(
00:05
+0000)
jquery/jquery.js
patch
|
blob
|
history
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
6a79833
..
b7a2799
100644
(file)
--- a/
jquery/jquery.js
+++ b/
jquery/jquery.js
@@
-320,12
+320,18
@@
function $(a,c) {
(function(){
var b = navigator.userAgent.toLowerCase();
(function(){
var b = navigator.userAgent.toLowerCase();
+
+ // Figure out what browser is being used
$.browser =
$.browser =
- ( /safari/.test(b) && "safari" ) ||
+ ( /webkit/.test(b) && "safari" ) ||
( /opera/.test(b) && "opera" ) ||
( /msie/.test(b) && "msie" ) ||
( !/compatible/.test(b) && "mozilla" ) ||
"other";
( /opera/.test(b) && "opera" ) ||
( /msie/.test(b) && "msie" ) ||
( !/compatible/.test(b) && "mozilla" ) ||
"other";
+
+ // Check to see if the W3C box model is being used
+ $.boxModel = ( $.browser != "msie" ||
+ document.compatMode == "CSS1Compat" );
})();
$.apply = function(o,f,a) {
})();
$.apply = function(o,f,a) {