rem: if(s == "opacity"){ dojo.html.setOpacity(n, style[s]); }else{ n.style[s] = style[s]; } 
add: try{ if(s == "opacity"){ dojo.html.setOpacity(n, style[s]); }else{ n.style[s] = style[s]; } }catch(e){ dojo.debug(e); } 
context: dojo.lfx.html.propertyAnimation = function(	/*DOMNode[]*/ nodes, 											/*Object[]*/ propertyMap, 											/*int*/ duration,											/*function*/ easing,											/*Object*/ handlers){	// summary: Returns an animation that will transition the properties of "nodes"	//			depending how they are defined in "propertyMap".	// nodes: An array of DOMNodes or one DOMNode.	// propertyMap: { property: String, start: Decimal?, end: Decimal?, units: String? }	//				An array of objects defining properties to change.	// duration: Duration of the animation in milliseconds.	// easing: An easing function.	// handlers: { handler: Function?, onstart: Function?, onstop: Function?, onanimate: Function? }	nodes = dojo.lfx.html._byId(nodes);	var targs = {		"propertyMap": propertyMap,		"nodes": nodes,		"duration": duration,		"easing": easing||dojo.lfx.easeDefault	};		var setEmUp = function(args){		if(args.nodes.length==1){			// FIXME: we're only supporting start-value filling when one node is			// passed						var pm = args.propertyMap;			if(!dojo.lang.isArray(args.propertyMap)){				// it's stupid to have to pack an array with a set of objects				// when you can just pass in an object list				var parr = [];				for(var pname in pm){					pm[pname].property = pname;					parr.push(pm[pname]);				}				pm = args.propertyMap = parr;			}			dojo.lang.forEach(pm, function(prop){				if(dj_undef("start", prop)){					if(prop.property != "opacity"){						prop.start = parseInt(dojo.html.getComputedStyle(args.nodes[0], prop.property));					}else{						prop.start = dojo.html.getOpacity(args.nodes[0]);					}				}			});		}	}	var coordsAsInts = function(coords){		var cints = [];		dojo.lang.forEach(coords, function(c){ 			cints.push(Math.round(c));		});		return cints;	}	var setStyle = function(n, style){		n = dojo.byId(n);		if(!n || !n.style){ return; }		for(var s in style){			if(s == "opacity"){				dojo.html.setOpacity(n, style[s]);			}else{				n.style[s] = style[s];			}		}	}	var propLine = function(properties){		this._properties = properties;		this.diffs = new Array(properties.length);		dojo.lang.forEach(properties, function(prop, i){			// calculate the end - start to optimize a bit			if(dojo.lang.isFunction(prop.start)){				prop.start = prop.start(prop, i);			}			if(dojo.lang.isFunction(prop.end)){				prop.end = prop.end(prop, i);			}			if(dojo.lang.isArray(prop.start)){				// don't loop through the arrays				this.diffs[i] = null;			}else if(prop.start instanceof dojo.gfx.color.Color){				// save these so we don't have to call toRgb() every getValue() call				prop.startRgb = prop.start.toRgb();				prop.endRgb = prop.end.toRgb();			}else{				this.diffs[i] = prop.end - prop.start;			}		}, this);		this.getValue = function(n){			var ret = {};			dojo.lang.forEach(this._properties, function(prop, i){				var value = null;				if(dojo.lang.isArray(prop.start)){					// FIXME: what to do here?				}else if(prop.start instanceof dojo.gfx.color.Color){					value = (prop.units||"rgb") + "(";					for(var j = 0 ; j < prop.startRgb.length ; j++){						value += Math.round(((prop.endRgb[j] - prop.startRgb[j]) * n) + prop.startRgb[j]) + (j < prop.startRgb.length - 1 ? "," : "");					}					value += ")";				}else{					value = ((this.diffs[i]) * n) + prop.start + (prop.property != "opacity" ? prop.units||"px" : "");				}				ret[dojo.html.toCamelCase(prop.property)] = value;			}, this);			return ret;		}	}		var anim = new dojo.lfx.Animation({			beforeBegin: function(){ 				setEmUp(targs); 				anim.curve = new propLine(targs.propertyMap);			},			onAnimate: function(propValues){				dojo.lang.forEach(targs.nodes, function(node){					setStyle(node, propValues);				});			}		},		targs.duration, 		null,		targs.easing	);	if(handlers){		for(var x in handlers){			if(dojo.lang.isFunction(handlers[x])){				anim.connect(x, anim, handlers[x]);			}		}	}		return anim; // dojo.lfx.Animation}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dojo.js.uncompressed.js/buggy/www/resources/dojo-ajax/dojo.js.uncompressed.js