MCPcopy
hub / github.com/layerJS/layerJS / next

Function next

test/e2e/bootstrap/bootstrap/js/bootstrap.js:2131–2162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2129 && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)
2130
2131 function next() {
2132 $active
2133 .removeClass('active')
2134 .find('> .dropdown-menu > .active')
2135 .removeClass('active')
2136 .end()
2137 .find('[data-toggle="tab"]')
2138 .attr('aria-expanded', false)
2139
2140 element
2141 .addClass('active')
2142 .find('[data-toggle="tab"]')
2143 .attr('aria-expanded', true)
2144
2145 if (transition) {
2146 element[0].offsetWidth // reflow for transition
2147 element.addClass('in')
2148 } else {
2149 element.removeClass('fade')
2150 }
2151
2152 if (element.parent('.dropdown-menu').length) {
2153 element
2154 .closest('li.dropdown')
2155 .addClass('active')
2156 .end()
2157 .find('[data-toggle="tab"]')
2158 .attr('aria-expanded', true)
2159 }
2160
2161 callback && callback()
2162 }
2163
2164 $active.length && transition ?
2165 $active

Callers 2

attemptAsyncFunction · 0.85
bootstrap.jsFile · 0.85

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected