public/javascripts/yui/container/container.js
function (type, args, obj) {

            var listeners = args[0],
                listener,
                nListeners,
                i;
        
            if (listeners) {

                if (listeners instanceof Array) {

                    nListeners = listeners.length;

                    for (i = 0; i < nListeners; i++) {

                        listener = listeners[i];
        
                        if (!Config.alreadySubscribed(this.showEvent, 
                            listener.enable, listener)) {

                            this.showEvent.subscribe(listener.enable, 
                                listener, true);

                        }

                        if (!Config.alreadySubscribed(this.hideEvent, 
                            listener.disable, listener)) {

                            this.hideEvent.subscribe(listener.disable, 
                                listener, true);

                            this.destroyEvent.subscribe(listener.disable, 
                                listener, true);
                        }
                    }

                } else {

                    if (!Config.alreadySubscribed(this.showEvent, 
                        listeners.enable, listeners)) {

                        this.showEvent.subscribe(listeners.enable, 
                            listeners, true);
                    }

                    if (!Config.alreadySubscribed(this.hideEvent, 
                        listeners.disable, listeners)) {

                        this.hideEvent.subscribe(listeners.disable, 
                            listeners, true);

                        this.destroyEvent.subscribe(listeners.disable, 
                            listeners, true);

                    }

                }

            }

        }
function (type, args, obj) {

            var listeners = args[0],
                listener,
                nListeners,
                i;
        
            if (listeners) {

                if (listeners instanceof Array) {

                    nListeners = listeners.length;

                    for (i = 0; i < nListeners; i++) {

                        listener = listeners[i];
        
                        if (!Config.alreadySubscribed(this.showEvent, 
                            listener.enable, listener)) {

                            this.showEvent.subscribe(listener.enable, 
                                listener, true);

                        }

                        if (!Config.alreadySubscribed(this.hideEvent, 
                            listener.disable, listener)) {

                            this.hideEvent.subscribe(listener.disable, 
                                listener, true);

                            this.destroyEvent.subscribe(listener.disable, 
                                listener, true);
                        }
                    }

                } else {

                    if (!Config.alreadySubscribed(this.showEvent, 
                        listeners.enable, listeners)) {

                        this.showEvent.subscribe(listeners.enable, 
                            listeners, true);
                    }

                    if (!Config.alreadySubscribed(this.hideEvent, 
                        listeners.disable, listeners)) {

                        this.hideEvent.subscribe(listeners.disable, 
                            listeners, true);

                        this.destroyEvent.subscribe(listeners.disable, 
                            listeners, true);

                    }

                }

            }

        }
function ( type , args , obj ) { var listeners = args [ 0 ] , listener , nListeners , i ; if ( listeners ) { if ( listeners instanceof Array ) { nListeners = listeners . length ; for ( i = 0 ; i < nListeners ; i ++ ) { listener = listeners [ i ] ; if ( ! Config . alreadySubscribed ( this . showEvent , listener . enable , listener ) ) { this . showEvent . subscribe ( listener . enable , listener , true ) ; } if ( ! Config . alreadySubscribed ( this . hideEvent , listener . disable , listener ) ) { this . hideEvent . subscribe ( listener . disable , listener , true ) ; this . destroyEvent . subscribe ( listener . disable , listener , true ) ; } } } else { if ( ! Config . alreadySubscribed ( this . showEvent , listeners . enable , listeners ) ) { this . showEvent . subscribe ( listeners . enable , listeners , true ) ; } if ( ! Config . alreadySubscribed ( this . hideEvent , listeners . disable , listeners ) ) { this . hideEvent . subscribe ( listeners . disable , listeners , true ) ; this . destroyEvent . subscribe ( listeners . disable , listeners , true ) ; } } } }
The default event handler fired when the "keylisteners" property
is changed.
@method configKeyListeners
@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 event handler fired when the keylisteners property is changed .