Sha256: ae762bf4f4d39e569d882e860f2341d485b1f251dfff34c2baff9e704cc7e7c0
Contents?: true
Size: 501 Bytes
Versions: 37
Compression:
Stored size: 501 Bytes
Contents
define( function() { "use strict"; // A method for quickly swapping in/out CSS properties to get correct calculations. return function( elem, options, callback ) { var ret, name, old = {}; // Remember the old values, and insert the new ones for ( name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } ret = callback.call( elem ); // Revert the old values for ( name in options ) { elem.style[ name ] = old[ name ]; } return ret; }; } );
Version data entries
37 entries across 28 versions & 4 rubygems