public/javascripts/yui/carousel/carousel-debug.js
function (cfg) {
            var rv = true;

            if (JS.isObject(cfg)) {
                if (cfg.speed) {
                    rv = rv && JS.isNumber(cfg.speed);
                }
                if (cfg.effect) {
                    rv = rv && JS.isFunction(cfg.effect);
                } else if (!JS.isUndefined(YAHOO.util.Easing)) {
                    cfg.effect = YAHOO.util.Easing.easeOut;
                }
            } else {
                rv = false;
            }

            return rv;
        }
function (cfg) {
            var rv = true;

            if (JS.isObject(cfg)) {
                if (cfg.speed) {
                    rv = rv && JS.isNumber(cfg.speed);
                }
                if (cfg.effect) {
                    rv = rv && JS.isFunction(cfg.effect);
                } else if (!JS.isUndefined(YAHOO.util.Easing)) {
                    cfg.effect = YAHOO.util.Easing.easeOut;
                }
            } else {
                rv = false;
            }

            return rv;
        }
function ( cfg ) { var rv = true ; if ( JS . isObject ( cfg ) ) { if ( cfg . speed ) { rv = rv && JS . isNumber ( cfg . speed ) ; } if ( cfg . effect ) { rv = rv && JS . isFunction ( cfg . effect ) ; } else if ( ! JS . isUndefined ( YAHOO . util . Easing ) ) { cfg . effect = YAHOO . util . Easing . easeOut ; } } else { rv = false ; } return rv ; }
Validate animation parameters.

@method _validateAnimation
@param cfg {Object} The animation configuration
@return {Boolean} The status of the validation
@protected
Validate animation parameters .