Making some more adjustments to handle auto CSS properties.

This commit is contained in:
John Resig 2010-09-13 18:00:28 -04:00
parent 8b7015987c
commit 2bda99c18a
3 changed files with 12 additions and 12 deletions

4
src/effects.js vendored
View file

@ -349,7 +349,7 @@ jQuery.fx.prototype = {
// Simple 'show' function
show: function() {
// Remember where we started, so that we can go back to it later
this.options.orig[this.prop] = jQuery.css( this.elem, this.prop );
this.options.orig[this.prop] = jQuery.css( this.elem, this.prop, undefined, false );
this.options.show = true;
// Begin the animation
@ -364,7 +364,7 @@ jQuery.fx.prototype = {
// Simple 'hide' function
hide: function() {
// Remember where we started, so that we can go back to it later
this.options.orig[this.prop] = jQuery.css( this.elem, this.prop );
this.options.orig[this.prop] = jQuery.css( this.elem, this.prop, undefined, false );
this.options.hide = true;
// Begin the animation