Changeset 2242
- Timestamp:
- 07/05/07 04:27:46 (1 year ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/fx/fx.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/fx/fx.js
r2131 r2242 316 316 self = this; 317 317 318 for ( var p in prop ) 318 for ( var p in prop ) { 319 319 if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden ) 320 320 return jQuery.isFunction(opt.complete) && opt.complete.apply(this); 321 322 if ( p == "height" || p == "width" ) { 323 // Store display property 324 opt.display = jQuery.css(this, "display"); 325 326 // Make sure that nothing sneaks out 327 opt.overflow = this.style.overflow; 328 } 329 } 330 331 if ( opt.overflow != null ) 332 this.style.overflow = "hidden"; 321 333 322 334 this.curAnim = jQuery.extend({}, prop); … … 423 435 var y = elem.style; 424 436 425 if ( prop == "height" || prop == "width" ) {426 // Store display property427 var oldDisplay = jQuery.css(elem, "display");428 429 // Make sure that nothing sneaks out430 var oldOverflow = y.overflow;431 y.overflow = "hidden";432 }433 434 437 // Simple function for setting a style value 435 438 z.a = function(){ … … 530 533 531 534 if ( done ) { 532 if ( o ldDisplay != null ) {535 if ( options.display != null ) { 533 536 // Reset the overflow 534 y.overflow = o ldOverflow;537 y.overflow = options.overflow; 535 538 536 539 // Reset the display 537 y.display = o ldDisplay;540 y.display = options.display; 538 541 if ( jQuery.css(elem, "display") == "none" ) 539 542 y.display = "block";
