0
@@ -29,9 +29,6 @@ window.undefined = window.undefined;
0
- // Initalize the extra macro functions
0
- if ( !jQuery.initDone ) jQuery.init();
0
// Shortcut for document ready (because $(document).each() is silly)
0
if ( a && a.constructor == Function && jQuery.fn.ready )
0
return jQuery(document).ready(a);
0
@@ -39,25 +36,6 @@ function jQuery(a,c) {
0
// Make sure that a selection was provided
0
a = a || jQuery.context || document;
0
- * Handle support for overriding other $() functions. Way too many libraries
0
- * provide this function to simply ignore it and overwrite it.
0
- // Check to see if this is a possible collision case
0
- if ( jQuery._$ && !c && a.constructor == String &&
0
- // Make sure that the expression is a colliding one
0
- !/[^a-zA-Z0-9_-]/.test(a) &&
0
- // and that there are no elements that match it
0
- // (this is the one truly ambiguous case)
0
- !document.getElementsByTagName(a).length )
0
- // Use the default method, in case it works some voodoo
0
- return jQuery._$( a );
0
// Watch for when a jQuery object is passed as the selector
0
return $( jQuery.merge( a, [] ) );
0
@@ -82,7 +60,10 @@ function jQuery(a,c) {
0
// Find the matching elements and save them for later
0
+ // See if an extra function was provided
0
var fn = arguments[ arguments.length - 1 ];
0
+ // If so, execute it in context
0
if ( fn && fn.constructor == Function )
0
@@ -811,8 +792,6 @@ jQuery.extend = jQuery.fn.extend = function(obj,prop) {
0
@@ -934,17 +913,21 @@ jQuery.extend({
0
if (jQuery.css(e,"display") != "none") {
0
oHeight = e.offsetHeight;
0
oWidth = e.offsetWidth;
0
- jQuery.swap( e, { visibility: "hidden", position: "absolute", display: "block" },
0
- oHeight = e.clientHeight;
0
- oWidth = e.clientWidth;
0
+ e = $(e.cloneNode(true)).css({
0
+ visibility: "hidden", position: "absolute", display: "block"
0
+ }).prependTo("body")[0];
0
+ oHeight = e.clientHeight;
0
+ oWidth = e.clientWidth;
0
+ e.parentNode.removeChild(e);
0
return p == "height" ? oHeight : oWidth;
0
} else if ( p == "opacity" && jQuery.browser.msie )
0
- return parseFloat(
jQuery.curCSS(e,"filter").replace(/[^0-9.]/,"") ) || 1;
0
+ return parseFloat(
jQuery.curCSS(e,"filter").replace(/[^0-9.]/,"") ) || 1;
0
return jQuery.curCSS( e, p );
0
@@ -2417,7 +2400,7 @@ jQuery.macros = {
0
this.style.display = this.oldblock ? this.oldblock : "";
0
if ( jQuery.css(this,"display") == "none" )
0
this.style.display = "block";
0
@@ -2440,7 +2423,7 @@ jQuery.macros = {
0
this.oldblock = this.oldblock || jQuery.css(this,"display");
0
if ( this.oldblock == "none" )
0
this.oldblock = "block";
0
@@ -2460,9 +2443,8 @@ jQuery.macros = {
0
- var d = jQuery.css(this,"display");
0
- $(this)[ !d || d == "none" ? "show" : "hide" ]();
0
+ $(this)[ $(this).is(":hidden") ? "show" : "hide" ].apply( $(this), arguments );
0
@@ -2672,3 +2654,5 @@ jQuery.macros = {
0
\ No newline at end of file