()
| 2115 | && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length) |
| 2116 | |
| 2117 | function next() { |
| 2118 | $active |
| 2119 | .removeClass('active') |
| 2120 | .find('> .dropdown-menu > .active') |
| 2121 | .removeClass('active') |
| 2122 | .end() |
| 2123 | .find('[data-toggle="tab"]') |
| 2124 | .attr('aria-expanded', false) |
| 2125 | |
| 2126 | element |
| 2127 | .addClass('active') |
| 2128 | .find('[data-toggle="tab"]') |
| 2129 | .attr('aria-expanded', true) |
| 2130 | |
| 2131 | if (transition) { |
| 2132 | element[0].offsetWidth // reflow for transition |
| 2133 | element.addClass('in') |
| 2134 | } else { |
| 2135 | element.removeClass('fade') |
| 2136 | } |
| 2137 | |
| 2138 | if (element.parent('.dropdown-menu').length) { |
| 2139 | element |
| 2140 | .closest('li.dropdown') |
| 2141 | .addClass('active') |
| 2142 | .end() |
| 2143 | .find('[data-toggle="tab"]') |
| 2144 | .attr('aria-expanded', true) |
| 2145 | } |
| 2146 | |
| 2147 | callback && callback() |
| 2148 | } |
| 2149 | |
| 2150 | $active.length && transition ? |
| 2151 | $active |
no test coverage detected