public/javascripts/yui/container/container-debug.js
function (key, value) {
        
            key = key.toLowerCase();
            YAHOO.log("queueProperty: " + key + "=" + value, "info", "Config");
        
            var property = this.config[key],
                foundDuplicate = false,
                iLen,
                queueItem,
                queueItemKey,
                queueItemValue,
                sLen,
                supercedesCheck,
                qLen,
                queueItemCheck,
                queueItemCheckKey,
                queueItemCheckValue,
                i,
                s,
                q;
                                
            if (property && property.event) {
    
                if (!Lang.isUndefined(value) && property.validator && 
                    !property.validator(value)) { // validator
                    return false;
                } else {
        
                    if (!Lang.isUndefined(value)) {
                        property.value = value;
                    } else {
                        value = property.value;
                    }
        
                    foundDuplicate = false;
                    iLen = this.eventQueue.length;
        
                    for (i = 0; i < iLen; i++) {
                        queueItem = this.eventQueue[i];
        
                        if (queueItem) {
                            queueItemKey = queueItem[0];
                            queueItemValue = queueItem[1];

                            if (queueItemKey == key) {
    
                                /*
                                    found a dupe... push to end of queue, null 
                                    current item, and break
                                */
    
                                this.eventQueue[i] = null;
    
                                this.eventQueue.push(
                                    [key, (!Lang.isUndefined(value) ? 
                                    value : queueItemValue)]);
    
                                foundDuplicate = true;
                                break;
                            }
                        }
                    }
                    
                    // this is a refire, or a new property in the queue
    
                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
                        this.eventQueue.push([key, value]);
                    }
                }
        
                if (property.supercedes) {

                    sLen = property.supercedes.length;

                    for (s = 0; s < sLen; s++) {

                        supercedesCheck = property.supercedes[s];
                        qLen = this.eventQueue.length;

                        for (q = 0; q < qLen; q++) {
                            queueItemCheck = this.eventQueue[q];

                            if (queueItemCheck) {
                                queueItemCheckKey = queueItemCheck[0];
                                queueItemCheckValue = queueItemCheck[1];

                                if (queueItemCheckKey == 
                                    supercedesCheck.toLowerCase() ) {

                                    this.eventQueue.push([queueItemCheckKey, 
                                        queueItemCheckValue]);

                                    this.eventQueue[q] = null;
                                    break;

                                }
                            }
                        }
                    }
                }

                YAHOO.log("Config event queue: " + this.outputEventQueue(), "info", "Config");

                return true;
            } else {
                return false;
            }
        }
function (key, value) {
        
            key = key.toLowerCase();
            YAHOO.log("queueProperty: " + key + "=" + value, "info", "Config");
        
            var property = this.config[key],
                foundDuplicate = false,
                iLen,
                queueItem,
                queueItemKey,
                queueItemValue,
                sLen,
                supercedesCheck,
                qLen,
                queueItemCheck,
                queueItemCheckKey,
                queueItemCheckValue,
                i,
                s,
                q;
                                
            if (property && property.event) {
    
                if (!Lang.isUndefined(value) && property.validator && 
                    !property.validator(value)) { // validator
                    return false;
                } else {
        
                    if (!Lang.isUndefined(value)) {
                        property.value = value;
                    } else {
                        value = property.value;
                    }
        
                    foundDuplicate = false;
                    iLen = this.eventQueue.length;
        
                    for (i = 0; i < iLen; i++) {
                        queueItem = this.eventQueue[i];
        
                        if (queueItem) {
                            queueItemKey = queueItem[0];
                            queueItemValue = queueItem[1];

                            if (queueItemKey == key) {
    
                                /*
                                    found a dupe... push to end of queue, null 
                                    current item, and break
                                */
    
                                this.eventQueue[i] = null;
    
                                this.eventQueue.push(
                                    [key, (!Lang.isUndefined(value) ? 
                                    value : queueItemValue)]);
    
                                foundDuplicate = true;
                                break;
                            }
                        }
                    }
                    
                    // this is a refire, or a new property in the queue
    
                    if (! foundDuplicate && !Lang.isUndefined(value)) { 
                        this.eventQueue.push([key, value]);
                    }
                }
        
                if (property.supercedes) {

                    sLen = property.supercedes.length;

                    for (s = 0; s < sLen; s++) {

                        supercedesCheck = property.supercedes[s];
                        qLen = this.eventQueue.length;

                        for (q = 0; q < qLen; q++) {
                            queueItemCheck = this.eventQueue[q];

                            if (queueItemCheck) {
                                queueItemCheckKey = queueItemCheck[0];
                                queueItemCheckValue = queueItemCheck[1];

                                if (queueItemCheckKey == 
                                    supercedesCheck.toLowerCase() ) {

                                    this.eventQueue.push([queueItemCheckKey, 
                                        queueItemCheckValue]);

                                    this.eventQueue[q] = null;
                                    break;

                                }
                            }
                        }
                    }
                }

                YAHOO.log("Config event queue: " + this.outputEventQueue(), "info", "Config");

                return true;
            } else {
                return false;
            }
        }
function ( key , value ) { key = key . toLowerCase ( ) ; YAHOO . log ( "queueProperty: " + key + "=" + value , "info" , "Config" ) ; var property = this . config [ key ] , foundDuplicate = false , iLen , queueItem , queueItemKey , queueItemValue , sLen , supercedesCheck , qLen , queueItemCheck , queueItemCheckKey , queueItemCheckValue , i , s , q ; if ( property && property . event ) { if ( ! Lang . isUndefined ( value ) && property . validator && ! property . validator ( value ) ) { // validator return false ; } else { if ( ! Lang . isUndefined ( value ) ) { property . value = value ; } else { value = property . value ; } foundDuplicate = false ; iLen = this . eventQueue . length ; for ( i = 0 ; i < iLen ; i ++ ) { queueItem = this . eventQueue [ i ] ; if ( queueItem ) { queueItemKey = queueItem [ 0 ] ; queueItemValue = queueItem [ 1 ] ; if ( queueItemKey == key ) { /*
                                    found a dupe... push to end of queue, null 
                                    current item, and break
                                */ this . eventQueue [ i ] = null ; this . eventQueue . push ( [ key , ( ! Lang . isUndefined ( value ) ? value : queueItemValue ) ] ) ; foundDuplicate = true ; break ; } } } // this is a refire, or a new property in the queue if ( ! foundDuplicate && ! Lang . isUndefined ( value ) ) { this . eventQueue . push ( [ key , value ] ) ; } } if ( property . supercedes ) { sLen = property . supercedes . length ; for ( s = 0 ; s < sLen ; s ++ ) { supercedesCheck = property . supercedes [ s ] ; qLen = this . eventQueue . length ; for ( q = 0 ; q < qLen ; q ++ ) { queueItemCheck = this . eventQueue [ q ] ; if ( queueItemCheck ) { queueItemCheckKey = queueItemCheck [ 0 ] ; queueItemCheckValue = queueItemCheck [ 1 ] ; if ( queueItemCheckKey == supercedesCheck . toLowerCase ( ) ) { this . eventQueue . push ( [ queueItemCheckKey , queueItemCheckValue ] ) ; this . eventQueue [ q ] = null ; break ; } } } } } YAHOO . log ( "Config event queue: " + this . outputEventQueue ( ) , "info" , "Config" ) ; return true ; } else { return false ; } }
Sets the value of a property and queues its event to execute. If the
event is already scheduled to execute, it is
moved from its current position to the end of the queue.
@method queueProperty
@param {String} key The name of the property
@param {String} value The value to set the property to
@return {Boolean}  true, if the set was successful, false if
it failed.
Sets the value of a property and queues its event to execute . If the event is already scheduled to execute it is moved from its current position to the end of the queue .