Making some more adjustments to handle auto CSS properties.
This commit is contained in:
parent
8b7015987c
commit
2bda99c18a
3 changed files with 12 additions and 12 deletions
|
@ -77,7 +77,7 @@ jQuery.extend({
|
|||
} else if ( !force && style[ name ] ) {
|
||||
ret = style[ name ];
|
||||
|
||||
} else if ( curCSS ) {
|
||||
} else if ( force !== false && curCSS ) {
|
||||
ret = curCSS( elem, name, origName );
|
||||
}
|
||||
|
||||
|
|
4
src/effects.js
vendored
4
src/effects.js
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue