public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js
function() {
            
            if(true === this.get('hoverActivated')) {
                    this.on('mouseover', this._onMouseOver, this, true);        
                    this.on('mouseout', this._onMouseOut, this, true);         
            }
            
            this.on('click', this._onClick, this, true);
            this.on('keydown', this._onKeydown, this, true);
            
            // set this._opening and this._closing before open/close operations begin
            
            this.on('panelOpen', function(){this._opening = true;}, this, true);
            this.on('panelClose', function(){this._closing = true;}, this, true);
            
            // This makes sure that this._fixTabindexes is called after a change has
            // fully completed
            
            this.on('afterPanelClose', function(){
                this._closing = false;
                if(!this._closing && !this._opening) {
                    this._fixTabIndexes();
                }
            }, this, true);
            this.on('afterPanelOpen', function(){
                this._opening = false;
                if(!this._closing && !this._opening) {
                    this._fixTabIndexes();
                }
            }, this, true);
            
            /*
            This is needed when the hrefs are removed from links
            to be able to still hit enter to follow the link
            We only do this when we have ARIA support
            */
            
            if(this._ARIACapable) {
                this.on('keypress', function(ev){
                    var eCurrentPanel = YUD.getAncestorByClassName(YUE.getTarget(ev), this.CLASSES.PANEL);
                    var keyCode = YUE.getCharCode(ev);
                    if(keyCode === 13) {
                        this._onClick(eCurrentPanel.firstChild);
                        return false;
                    }
                });
            }    
        }
function() {
            
            if(true === this.get('hoverActivated')) {
                    this.on('mouseover', this._onMouseOver, this, true);        
                    this.on('mouseout', this._onMouseOut, this, true);         
            }
            
            this.on('click', this._onClick, this, true);
            this.on('keydown', this._onKeydown, this, true);
            
            // set this._opening and this._closing before open/close operations begin
            
            this.on('panelOpen', function(){this._opening = true;}, this, true);
            this.on('panelClose', function(){this._closing = true;}, this, true);
            
            // This makes sure that this._fixTabindexes is called after a change has
            // fully completed
            
            this.on('afterPanelClose', function(){
                this._closing = false;
                if(!this._closing && !this._opening) {
                    this._fixTabIndexes();
                }
            }, this, true);
            this.on('afterPanelOpen', function(){
                this._opening = false;
                if(!this._closing && !this._opening) {
                    this._fixTabIndexes();
                }
            }, this, true);
            
            /*
            This is needed when the hrefs are removed from links
            to be able to still hit enter to follow the link
            We only do this when we have ARIA support
            */
            
            if(this._ARIACapable) {
                this.on('keypress', function(ev){
                    var eCurrentPanel = YUD.getAncestorByClassName(YUE.getTarget(ev), this.CLASSES.PANEL);
                    var keyCode = YUE.getCharCode(ev);
                    if(keyCode === 13) {
                        this._onClick(eCurrentPanel.firstChild);
                        return false;
                    }
                });
            }    
        }
function ( ) { if ( true === this . get ( 'hoverActivated' ) ) { this . on ( 'mouseover' , this . _onMouseOver , this , true ) ; this . on ( 'mouseout' , this . _onMouseOut , this , true ) ; } this . on ( 'click' , this . _onClick , this , true ) ; this . on ( 'keydown' , this . _onKeydown , this , true ) ; // set this._opening and this._closing before open/close operations begin this . on ( 'panelOpen' , function ( ) { this . _opening = true ; } , this , true ) ; this . on ( 'panelClose' , function ( ) { this . _closing = true ; } , this , true ) ; // This makes sure that this._fixTabindexes is called after a change has // fully completed this . on ( 'afterPanelClose' , function ( ) { this . _closing = false ; if ( ! this . _closing && ! this . _opening ) { this . _fixTabIndexes ( ) ; } } , this , true ) ; this . on ( 'afterPanelOpen' , function ( ) { this . _opening = false ; if ( ! this . _closing && ! this . _opening ) { this . _fixTabIndexes ( ) ; } } , this , true ) ; /*
            This is needed when the hrefs are removed from links
            to be able to still hit enter to follow the link
            We only do this when we have ARIA support
            */ if ( this . _ARIACapable ) { this . on ( 'keypress' , function ( ev ) { var eCurrentPanel = YUD . getAncestorByClassName ( YUE . getTarget ( ev ) , this . CLASSES . PANEL ) ; var keyCode = YUE . getCharCode ( ev ) ; if ( keyCode === 13 ) { this . _onClick ( eCurrentPanel . firstChild ) ; return false ; } } ) ; } }
Attach all event listeners
@method initEvents
@public
Attach all event listeners