public/javascripts/yui/calendar/calendar.js
function(type, args, obj) {
        var val = args[0],
            firstPageDate;

        var cfgPageDate = DEF_CFG.PAGEDATE.key;
        
        for (var p=0;p<this.pages.length;++p) {
            var cal = this.pages[p];
            if (p === 0) {
                firstPageDate = cal._parsePageDate(val);
                cal.cfg.setProperty(cfgPageDate, firstPageDate);
            } else {
                var pageDate = new Date(firstPageDate);
                this._setMonthOnDate(pageDate, pageDate.getMonth() + p);
                cal.cfg.setProperty(cfgPageDate, pageDate);
            }
        }
    }
function(type, args, obj) {
        var val = args[0],
            firstPageDate;

        var cfgPageDate = DEF_CFG.PAGEDATE.key;
        
        for (var p=0;p<this.pages.length;++p) {
            var cal = this.pages[p];
            if (p === 0) {
                firstPageDate = cal._parsePageDate(val);
                cal.cfg.setProperty(cfgPageDate, firstPageDate);
            } else {
                var pageDate = new Date(firstPageDate);
                this._setMonthOnDate(pageDate, pageDate.getMonth() + p);
                cal.cfg.setProperty(cfgPageDate, pageDate);
            }
        }
    }
function ( type , args , obj ) { var val = args [ 0 ] , firstPageDate ; var cfgPageDate = DEF_CFG . PAGEDATE . key ; for ( var p = 0 ; p < this . pages . length ; ++ p ) { var cal = this . pages [ p ] ; if ( p === 0 ) { firstPageDate = cal . _parsePageDate ( val ) ; cal . cfg . setProperty ( cfgPageDate , firstPageDate ) ; } else { var pageDate = new Date ( firstPageDate ) ; this . _setMonthOnDate ( pageDate , pageDate . getMonth ( ) + p ) ; cal . cfg . setProperty ( cfgPageDate , pageDate ) ; } } }
The default Config handler for the "pagedate" property
@method configPageDate
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj The scope object. For configuration handlers, this will usually equal the owner.
The default Config handler for the pagedate property