define(function(){// A method for quickly swapping in/out CSS properties to get correct calculations.returnfunction(elem,options,callback,args){varret,name,old={};// Remember the old values, and insert the new onesfor(nameinoptions){old[name]=elem.style[name];elem.style[name]=options[name];}ret=callback.apply(elem,args||[]);// Revert the old valuesfor(nameinoptions){elem.style[name]=old[name];}returnret;};});