Added checks for the box model.
This commit is contained in:
parent
34dd8afb25
commit
a70ab6564b
8
jquery/jquery.js
vendored
8
jquery/jquery.js
vendored
|
@ -320,12 +320,18 @@ function $(a,c) {
|
||||||
|
|
||||||
(function(){
|
(function(){
|
||||||
var b = navigator.userAgent.toLowerCase();
|
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" ) ||
|
( /opera/.test(b) && "opera" ) ||
|
||||||
( /msie/.test(b) && "msie" ) ||
|
( /msie/.test(b) && "msie" ) ||
|
||||||
( !/compatible/.test(b) && "mozilla" ) ||
|
( !/compatible/.test(b) && "mozilla" ) ||
|
||||||
"other";
|
"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) {
|
||||||
|
|
Loading…
Reference in a new issue