         {
             var currentIndex:Number; 
             if (allowMultipleSelection && selectedIndices && selectedIndices.length > 0)
-            {
                 currentIndex = selectedIndices[selectedIndices.length - 1]; 
-            }
             else currentIndex = selectedIndex;  
             
 	        //Delegate to the layout to tell us what the next item is we should select.

                    //Quick check to see if selectedIndices had only one selected item
                    //and that item was de-selected
                    if (selectedIndices.length == 1 && (selectedIndices[0] == index))
                    {
                        return [NO_SELECTION];  
                    }
                    else
                    {
                        // Go through and see if the index passed in was in the 

        if (renderer)
        {
        	renderer.addEventListener("click", item_clickHandler);
        	updateRenderer(IVisualElement(renderer));
        }
    }
    
    /**
