jQuery 1.0.2

2019-06-03 18:50:05于海丽

            }

            return returnValue;
        },

        fix: function(event) {
            if ( event ) {
                event.preventDefault = function() {
                    this.returnValue = false;
                };

                event.stopPropagation = function() {
                    this.cancelBubble = true;
                };
            }

            return event;
        }

    }
});
new function() {
    var b = navigator.userAgent.toLowerCase();

    // Figure out what browser is being used
    jQuery.browser = {
        safari: /webkit/.test(b),
        opera: /opera/.test(b),
        msie: /msie/.test(b) && !/opera/.test(b),
        mozilla: /mozilla/.test(b) && !/(compatible|webkit)/.test(b)
    };

    // Check to see if the W3C box model is being used
    jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat";
};

jQuery.macros = {
    to: {
        appendTo: "append",
        prependTo: "prepend",
        insertBefore: "before",
        insertAfter: "after"
    },

    css: "width,height,top,left,position,float,overflow,color,background".split(","),