public/javascripts/yui/calendar/calendar.js
function(type, args, obj) {
        var pageCount = args[0],
            cfgPageDate = DEF_CFG.PAGEDATE.key,
            sep = "_",
            caldate,
            firstPageDate = null,
            groupCalClass = "groupcal",
            firstClass = "first-of-type",
            lastClass = "last-of-type";

        for (var p=0;p<pageCount;++p) {
            var calId = this.id + sep + p,
                calContainerId = this.containerId + sep + p,
                childConfig = this.cfg.getConfig();

            childConfig.close = false;
            childConfig.title = false;
            childConfig.navigator = null;

            if (p > 0) {
                caldate = new Date(firstPageDate);
                this._setMonthOnDate(caldate, caldate.getMonth() + p);
                childConfig.pageDate = caldate;
            }

            var cal = this.constructChild(calId, calContainerId, childConfig);

            Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
            Dom.addClass(cal.oDomContainer, groupCalClass);

            if (p===0) {
                firstPageDate = cal.cfg.getProperty(cfgPageDate);
                Dom.addClass(cal.oDomContainer, firstClass);
            }
    
            if (p==(pageCount-1)) {
                Dom.addClass(cal.oDomContainer, lastClass);
            }
    
            cal.parent = this;
            cal.index = p; 
    
            this.pages[this.pages.length] = cal;
        }
    }
function(type, args, obj) {
        var pageCount = args[0],
            cfgPageDate = DEF_CFG.PAGEDATE.key,
            sep = "_",
            caldate,
            firstPageDate = null,
            groupCalClass = "groupcal",
            firstClass = "first-of-type",
            lastClass = "last-of-type";

        for (var p=0;p<pageCount;++p) {
            var calId = this.id + sep + p,
                calContainerId = this.containerId + sep + p,
                childConfig = this.cfg.getConfig();

            childConfig.close = false;
            childConfig.title = false;
            childConfig.navigator = null;

            if (p > 0) {
                caldate = new Date(firstPageDate);
                this._setMonthOnDate(caldate, caldate.getMonth() + p);
                childConfig.pageDate = caldate;
            }

            var cal = this.constructChild(calId, calContainerId, childConfig);

            Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
            Dom.addClass(cal.oDomContainer, groupCalClass);

            if (p===0) {
                firstPageDate = cal.cfg.getProperty(cfgPageDate);
                Dom.addClass(cal.oDomContainer, firstClass);
            }
    
            if (p==(pageCount-1)) {
                Dom.addClass(cal.oDomContainer, lastClass);
            }
    
            cal.parent = this;
            cal.index = p; 
    
            this.pages[this.pages.length] = cal;
        }
    }
function ( type , args , obj ) { var pageCount = args [ 0 ] , cfgPageDate = DEF_CFG . PAGEDATE . key , sep = "_" , caldate , firstPageDate = null , groupCalClass = "groupcal" , firstClass = "first-of-type" , lastClass = "last-of-type" ; for ( var p = 0 ; p < pageCount ; ++ p ) { var calId = this . id + sep + p , calContainerId = this . containerId + sep + p , childConfig = this . cfg . getConfig ( ) ; childConfig . close = false ; childConfig . title = false ; childConfig . navigator = null ; if ( p > 0 ) { caldate = new Date ( firstPageDate ) ; this . _setMonthOnDate ( caldate , caldate . getMonth ( ) + p ) ; childConfig . pageDate = caldate ; } var cal = this . constructChild ( calId , calContainerId , childConfig ) ; Dom . removeClass ( cal . oDomContainer , this . Style . CSS_SINGLE ) ; Dom . addClass ( cal . oDomContainer , groupCalClass ) ; if ( p === 0 ) { firstPageDate = cal . cfg . getProperty ( cfgPageDate ) ; Dom . addClass ( cal . oDomContainer , firstClass ) ; } if ( p == ( pageCount - 1 ) ) { Dom . addClass ( cal . oDomContainer , lastClass ) ; } cal . parent = this ; cal . index = p ; this . pages [ this . pages . length ] = cal ; } }
The default Config handler for the "pages" property
@method configPages
@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 pages property