5 // A method for quickly swapping in/out CSS properties to get correct calculations.
6 return function( elem, options, callback, args ) {
10 // Remember the old values, and insert the new ones
11 for ( name in options ) {
12 old[ name ] = elem.style[ name ];
13 elem.style[ name ] = options[ name ];
16 ret = callback.apply( elem, args || [] );
18 // Revert the old values
19 for ( name in options ) {
20 elem.style[ name ] = old[ name ];