      *
      *  @param index The item index that was put into caret state. 
      *
-     *  @param inFocus <code>true</code> if the item is in the caret state,  
+     *  @param showsCaret <code>true</code> if the item is in the caret state,  
      *  and <code>false</code> if it is not.
      *  
      *  @langversion 3.0

            changedSelection = commitSelection();
        
        // If the selectedIndex has been adjusted to account for items that
        // have been added or removed, send out a "selectionChanged" event 
        // so any bindings to selectedIndex are updated correctly.
        if (selectedIndexAdjusted)
        {
            selectedIndexAdjusted = false;
            if (!changedSelection)
            {
                e = new IndexChangedEvent(IndexChangedEvent.SELECTION_CHANGED);
                e.oldIndex = selectedIndex;
                e.newIndex = selectedIndex;
                dispatchEvent(e);
            }
        }
        
        if (currentCaretIndexAdjusted)
        {
        	currentCaretIndexAdjusted = false;
        	if (!changedSelection)
        	{
        		// Put the new currentCaretIndex renderer into the
        		// caret state and dispatch an "itemFocusChanged" 
        		// event to update any bindings. Additionally, update 
        		// the backing variable. 
        		itemInCaret(selectedIndex, true); 
        		_currentCaretIndex = selectedIndex; 
        		
        		e = new IndexChangedEvent(IndexChangedEvent.ITEM_FOCUS_CHANGED); 
        		e.oldIndex = currentCaretIndex; 
        		e.newIndex = currentCaretIndex;
        		dispatchEvent(e);  
        	}
        }

     *  @playerversion AIR 1.5
     *  @productversion Flex 4
     */
    mx_internal function isItemIndexShowingCaret(index:int):Boolean
    {        
        return index == caretIndex;
    }
    
    //--------------------------------------------------------------------------
