3 // A method for quickly swapping in/out CSS properties to get correct calculations.
4 return function( elem, options, callback, args ) {
8 // Remember the old values, and insert the new ones
9 for ( name in options ) {
10 old[ name ] = elem.style[ name ];
11 elem.style[ name ] = options[ name ];
14 ret = callback.apply( elem, args || [] );
16 // Revert the old values
17 for ( name in options ) {
18 elem.style[ name ] = old[ name ];