primeui-all.js
function(index) {
            var panel = this.panels.eq(index),
            header = panel.prev();

            header.attr('aria-expanded', false).children('.fa').removeClass('fa-caret-down').addClass('fa-caret-right');
            header.removeClass('ui-state-active ui-corner-top').addClass('ui-corner-all');
            panel.attr('aria-hidden', true).slideUp();

            this._removeFromSelection(index);
        }
function(index) {
            var panel = this.panels.eq(index),
            header = panel.prev();

            header.attr('aria-expanded', false).children('.fa').removeClass('fa-caret-down').addClass('fa-caret-right');
            header.removeClass('ui-state-active ui-corner-top').addClass('ui-corner-all');
            panel.attr('aria-hidden', true).slideUp();

            this._removeFromSelection(index);
        }
function ( index ) { var panel = this . panels . eq ( index ) , header = panel . prev ( ) ; header . attr ( 'aria-expanded' , false ) . children ( '.fa' ) . removeClass ( 'fa-caret-down' ) . addClass ( 'fa-caret-right' ) ; header . removeClass ( 'ui-state-active ui-corner-top' ) . addClass ( 'ui-corner-all' ) ; panel . attr ( 'aria-hidden' , true ) . slideUp ( ) ; this . _removeFromSelection ( index ) ; }
Deactivates a tab with given index
Deactivates a tab with given index