| @@ 8280-8310 (lines=31) @@ | ||
| 8277 | } |
|
| 8278 | }, |
|
| 8279 | ||
| 8280 | hide: function( speed, easing, callback ) { |
|
| 8281 | if ( speed || speed === 0 ) { |
|
| 8282 | return this.animate( genFx("hide", 3), speed, easing, callback); |
|
| 8283 | ||
| 8284 | } else { |
|
| 8285 | var elem, display, |
|
| 8286 | i = 0, |
|
| 8287 | j = this.length; |
|
| 8288 | ||
| 8289 | for ( ; i < j; i++ ) { |
|
| 8290 | elem = this[i]; |
|
| 8291 | if ( elem.style ) { |
|
| 8292 | display = jQuery.css( elem, "display" ); |
|
| 8293 | ||
| 8294 | if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) { |
|
| 8295 | jQuery._data( elem, "olddisplay", display ); |
|
| 8296 | } |
|
| 8297 | } |
|
| 8298 | } |
|
| 8299 | ||
| 8300 | // Set the display of the elements in a second loop |
|
| 8301 | // to avoid the constant reflow |
|
| 8302 | for ( i = 0; i < j; i++ ) { |
|
| 8303 | if ( this[i].style ) { |
|
| 8304 | this[i].style.display = "none"; |
|
| 8305 | } |
|
| 8306 | } |
|
| 8307 | ||
| 8308 | return this; |
|
| 8309 | } |
|
| 8310 | }, |
|
| 8311 | ||
| 8312 | // Save the old toggle function |
|
| 8313 | _toggle: jQuery.fn.toggle, |
|
| @@ 7336-7357 (lines=22) @@ | ||
| 7333 | } |
|
| 7334 | }, |
|
| 7335 | ||
| 7336 | hide: function( speed, easing, callback ) { |
|
| 7337 | if ( speed || speed === 0 ) { |
|
| 7338 | return this.animate( genFx("hide", 3), speed, easing, callback); |
|
| 7339 | ||
| 7340 | } else { |
|
| 7341 | for ( var i = 0, j = this.length; i < j; i++ ) { |
|
| 7342 | var display = jQuery.css( this[i], "display" ); |
|
| 7343 | ||
| 7344 | if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) { |
|
| 7345 | jQuery._data( this[i], "olddisplay", display ); |
|
| 7346 | } |
|
| 7347 | } |
|
| 7348 | ||
| 7349 | // Set the display of the elements in a second loop |
|
| 7350 | // to avoid the constant reflow |
|
| 7351 | for ( i = 0; i < j; i++ ) { |
|
| 7352 | this[i].style.display = "none"; |
|
| 7353 | } |
|
| 7354 | ||
| 7355 | return this; |
|
| 7356 | } |
|
| 7357 | }, |
|
| 7358 | ||
| 7359 | // Save the old toggle function |
|
| 7360 | _toggle: jQuery.fn.toggle, |
|