public/javascripts/yui/carousel/carousel-debug.js
function (ev) {
            var carousel     = this,
                carouselItem = carousel.get("carouselItemEl"),
                container    = carousel.get("element"),
                el,
                item,
                target       = Event.getTarget(ev),
                tag          = target.tagName.toUpperCase();

            if(tag === "INPUT" ||
               tag === "SELECT" ||
               tag === "TEXTAREA") {
                return;
            }

            while (target && target != container &&
                   target.id != carousel._carouselEl) {
                el = target.nodeName;
                if (el.toUpperCase() == carouselItem) {
                    break;
                }
                target = target.parentNode;
            }

            if ((item = carousel.getItemPositionById(target.id)) >= 0) {
                YAHOO.log("Setting selection to " + item, WidgetName);
                carousel.set("selectedItem", carousel._getSelectedItem(item));
                carousel.focus();
            }
        }
function (ev) {
            var carousel     = this,
                carouselItem = carousel.get("carouselItemEl"),
                container    = carousel.get("element"),
                el,
                item,
                target       = Event.getTarget(ev),
                tag          = target.tagName.toUpperCase();

            if(tag === "INPUT" ||
               tag === "SELECT" ||
               tag === "TEXTAREA") {
                return;
            }

            while (target && target != container &&
                   target.id != carousel._carouselEl) {
                el = target.nodeName;
                if (el.toUpperCase() == carouselItem) {
                    break;
                }
                target = target.parentNode;
            }

            if ((item = carousel.getItemPositionById(target.id)) >= 0) {
                YAHOO.log("Setting selection to " + item, WidgetName);
                carousel.set("selectedItem", carousel._getSelectedItem(item));
                carousel.focus();
            }
        }
function ( ev ) { var carousel = this , carouselItem = carousel . get ( "carouselItemEl" ) , container = carousel . get ( "element" ) , el , item , target = Event . getTarget ( ev ) , tag = target . tagName . toUpperCase ( ) ; if ( tag === "INPUT" || tag === "SELECT" || tag === "TEXTAREA" ) { return ; } while ( target && target != container && target . id != carousel . _carouselEl ) { el = target . nodeName ; if ( el . toUpperCase ( ) == carouselItem ) { break ; } target = target . parentNode ; } if ( ( item = carousel . getItemPositionById ( target . id ) ) >= 0 ) { YAHOO . log ( "Setting selection to " + item , WidgetName ) ; carousel . set ( "selectedItem" , carousel . _getSelectedItem ( item ) ) ; carousel . focus ( ) ; } }
The "click" handler for the item.

@method _itemClickHandler
@param {Event} ev The event object
@protected
The click handler for the item .