rem: if (param.as == "editor") { var max = res.data.choices; for (var i=0; i<max; i++) { res.write(param.prefix.replace(re, i+1)); var param2 = this.createInputParam("choice", param); if (req.data.choice) { if (req.data.choice_array) { if (req.data.choice_array.length > i) param2.value = req.data.choice_array[i]; } else param2.value = req.data.choice; } renderInputText(param2); res.write("\n"); } } else { var chosen = -1; 
add: if (param.as == "editor") { var max = res.data.choices; for (var i=0; i<max; i++) { res.write(param.prefix.replace(re, i+1)); var param2 = this.createInputParam("choice", param); if (req.data.choice) { if (req.data.choice_array) { if (req.data.choice_array.length > i) param2.value = req.data.choice_array[i]; } else param2.value = req.data.choice; } renderInputText(param2); res.write("\n"); } } else { var chosen = -1; 
context: function choices_macro(param) {	if (param.as == "editor") {		var max = res.data.choices;		for (var i=0; i<max; i++) {			res.write(param.prefix.replace(re, i+1));			var param2 = this.createInputParam("choice", param);			if (req.data.choice) {				if (req.data.choice_array) {					if (req.data.choice_array.length > i)						param2.value = req.data.choice_array[i];				}				else					param2.value = req.data.choice;			} 	   	renderInputText(param2);			res.write("\n");		}	}	else {		var chosen = -1;      if (session.user)         chosen = this.votes.get(session.user.name);		for (var i=0; i<this.size(); i++) {			var c = this.get(i);			param.name = "choice";			param.title = c.title;			param.value = c._id;			if (c._id == chosen)				param.checked = " checked";			else				param.checked = "";			res.write(c.renderSkinAsString("main", param));			res.write("\n");		}	}}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/9f008a01a55ed405b1a4aecf9a459a35b948bd13/macros.js/buggy/code/Poll/macros.js