rem: function render(){ var element=wicketGet(elementId+'-autocomplete'); for(var i=0;i<elementCount;i++){ var node=element.firstChild.childNodes[i]; var classNames = node.className.split(" "); for (var j=0; j<classNames.length; j++) { if (classNames[j] == 'selected') { classNames[j] = ''; } }  if(selected==i){ classNames.push('selected'); }  node.className = classNames.join(" "); } } 
add: function render(){ var element= getAutocompleteMenu(); for(var i=0;i<elementCount;i++){ var node=element.firstChild.childNodes[i]; var classNames = node.className.split(" "); for (var j=0; j<classNames.length; j++) { if (classNames[j] == 'selected') { classNames[j] = ''; } }  if(selected==i){ classNames.push('selected'); }  node.className = classNames.join(" "); } } 
context: 	function render(){			var element=wicketGet(elementId+'-autocomplete');    	for(var i=0;i<elementCount;i++){    		var node=element.firstChild.childNodes[i];			var classNames = node.className.split(" ");			for (var j=0; j<classNames.length; j++) {				if (classNames[j] == 'selected') {					classNames[j] = '';				}			}     					if(selected==i){	   			classNames.push('selected');	    	}		    		    		    	node.className = classNames.join(" ");    	}    			}
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1204/36379ea5546c2d0000261e41b2300049b6ccd119/wicket-autocomplete.js/buggy/wicket-extensions/src/java/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js