public/javascripts/yui/calendar/calendar.js
function(count) {
        var cfgPageDate = DEF_CFG.PAGEDATE.key,

        prevDate = this.cfg.getProperty(cfgPageDate),
        newDate = DateMath.add(prevDate, DateMath.YEAR, count);

        this.cfg.setProperty(cfgPageDate, newDate);
        this.resetRenderers();
        this.changePageEvent.fire(prevDate, newDate);
    }
function(count) {
        var cfgPageDate = DEF_CFG.PAGEDATE.key,

        prevDate = this.cfg.getProperty(cfgPageDate),
        newDate = DateMath.add(prevDate, DateMath.YEAR, count);

        this.cfg.setProperty(cfgPageDate, newDate);
        this.resetRenderers();
        this.changePageEvent.fire(prevDate, newDate);
    }
function ( count ) { var cfgPageDate = DEF_CFG . PAGEDATE . key , prevDate = this . cfg . getProperty ( cfgPageDate ) , newDate = DateMath . add ( prevDate , DateMath . YEAR , count ) ; this . cfg . setProperty ( cfgPageDate , newDate ) ; this . resetRenderers ( ) ; this . changePageEvent . fire ( prevDate , newDate ) ; }
Adds the designated number of years to the current calendar, and sets the current
calendar page date to the new month.
@method addYears
@param {Number} count The number of years to add to the current calendar
Adds the designated number of years to the current calendar and sets the current calendar page date to the new month .