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

Version Path
trusty-cms-6.3.1 node_modules/jquery-treetable/node_modules/jquery/src/css/var/swap.js
trusty-cms-6.3.1 node_modules/jquery/src/css/var/swap.js
trusty-cms-6.3.1 node_modules/jquery-ujs/node_modules/jquery/src/css/var/swap.js
optimacms-0.1.61 spec/dummy/node_modules/jquery-ujs/node_modules/jquery/src/css/var/swap.js
optimacms-0.1.61 spec/dummy/node_modules/cocoon-js/node_modules/jquery/src/css/var/swap.js
udt-itf-theme-0.1.0 _sass/node_modules/jquery/src/css/var/swap.js
trusty-cms-5.0.7 node_modules/jquery/src/css/var/swap.js
trusty-cms-5.0.6 node_modules/jquery/src/css/var/swap.js
trusty-cms-5.0.5 node_modules/jquery/src/css/var/swap.js
trusty-cms-5.0.4 node_modules/jquery/src/css/var/swap.js
trusty-cms-5.0.3 node_modules/jquery/src/css/var/swap.js
trusty-cms-5.0.2 node_modules/jquery/src/css/var/swap.js
trusty-cms-5.0.1 node_modules/jquery/src/css/var/swap.js
trusty-cms-4.3.5 node_modules/jquery/src/css/var/swap.js
trusty-cms-5.0.0 node_modules/jquery/src/css/var/swap.js
trusty-cms-4.3.4 node_modules/jquery/src/css/var/swap.js
trusty-cms-4.3.4 spec/dummy/node_modules/jquery/src/css/var/swap.js
trusty-cms-4.3.3 spec/dummy/node_modules/jquery/src/css/var/swap.js
trusty-cms-4.3.3 node_modules/jquery/src/css/var/swap.js
trusty-cms-4.3.2 spec/dummy/node_modules/jquery/src/css/var/swap.js