elem.style[ name ] = elem.style[ "old" + name ];
},
- css: function( elem, name ) {
+ css: function( elem, name, force ) {
if ( name == "height" || name == "width" ) {
var old = {}, height, width;
width;
}
- return jQuery.curCSS( elem, name );
+ return jQuery.curCSS( elem, name, force );
},
curCSS: function( elem, name, force ) {
if ( this.elem[this.prop] != null && this.elem.style[this.prop] == null )
return this.elem[ this.prop ];
- var r = parseFloat(jQuery.curCSS(this.elem, this.prop, force));
- return r && r > -10000 ? r : parseFloat(jQuery.css(this.elem, this.prop)) || 0;
+ var r = parseFloat(jQuery.css(this.elem, this.prop, force));
+ return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
},
// Start an animation from one number to another