rem: var style = $H(), value = null; this.transforms.each(function(transform){ value = transform.unit=='color' ? $R(0,2).inject('#',function(m,v,i){ return m+(Math.round(transform.originalValue[i]+ (transform.targetValue[i] - transform.originalValue[i])*position)).toColorPart() }) : transform.originalValue + Math.round( ((transform.targetValue - transform.originalValue) * position) * 1000)/1000 + transform.unit; style[transform.style] = value; }); this.element.setStyle(style); 
add: var style = { }, transform, i = this.transforms.length; while(i--) style[(transform = this.transforms[i]).style] = transform.unit=='color' ? '#'+ (Math.round(transform.originalValue[0]+ (transform.targetValue[0]-transform.originalValue[0])*position)).toColorPart() + (Math.round(transform.originalValue[1]+ (transform.targetValue[1]-transform.originalValue[1])*position)).toColorPart() + (Math.round(transform.originalValue[2]+ (transform.targetValue[2]-transform.originalValue[2])*position)).toColorPart() : (transform.originalValue + (transform.targetValue - transform.originalValue) * position).toFixed(3) + (transform.unit === null ? '' : transform.unit); this.element.setStyle(style, true); 
context:   update: function(position) {    var style = $H(), value = null;    this.transforms.each(function(transform){      value = transform.unit=='color' ?        $R(0,2).inject('#',function(m,v,i){          return m+(Math.round(transform.originalValue[i]+            (transform.targetValue[i] - transform.originalValue[i])*position)).toColorPart() }) :         transform.originalValue + Math.round(          ((transform.targetValue - transform.originalValue) * position) * 1000)/1000 + transform.unit;      style[transform.style] = value;    });    this.element.setStyle(style);  }
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/2d4247a14ff4ce25ad80cbc65b787dfde7ddb16e/effects.js/buggy/typo3/contrib/scriptaculous/effects.js