All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bower_components.jquery.src.css.var.swap.js Maven / Gradle / Ivy

Go to download

Helper library to visualize and assert which parts of a BPMN process have been covered by a unit test.

There is a newer version: 0.4.0
Show newest version
define( function() {

// A method for quickly swapping in/out CSS properties to get correct calculations.
return function( elem, options, callback, args ) {
	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.apply( elem, args || [] );

	// Revert the old values
	for ( name in options ) {
		elem.style[ name ] = old[ name ];
	}

	return ret;
};

} );




© 2015 - 2025 Weber Informatics LLC | Privacy Policy