Skip to content

Commit b7cce49

Browse files
GeoSotXhmikosR
authored andcommitted
Carousel: use combined selector and drop variable used once
1 parent a814249 commit b7cce49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/carousel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ const CLASS_NAME_NEXT = 'carousel-item-next'
5656
const CLASS_NAME_PREV = 'carousel-item-prev'
5757

5858
const SELECTOR_ACTIVE = '.active'
59-
const SELECTOR_ACTIVE_ITEM = '.active.carousel-item'
6059
const SELECTOR_ITEM = '.carousel-item'
60+
const SELECTOR_ACTIVE_ITEM = SELECTOR_ACTIVE + SELECTOR_ITEM
6161
const SELECTOR_ITEM_IMG = '.carousel-item img'
6262
const SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev'
6363
const SELECTOR_INDICATORS = '.carousel-indicators'

0 commit comments

Comments
 (0)