Commit a70ab656 authored by John Resig's avatar John Resig

Added checks for the box model.

parent 34dd8afb
......@@ -320,12 +320,18 @@ function $(a,c) {
(function(){
var b = navigator.userAgent.toLowerCase();
// Figure out what browser is being used
$.browser =
( /safari/.test(b) && "safari" ) ||
( /webkit/.test(b) && "safari" ) ||
( /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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment