Carousel: use combined selector and drop variable used once

This commit is contained in:
GeoSot 2022-03-02 01:34:38 +02:00 committed by XhmikosR
parent a8142497c7
commit b7cce49dbc
1 changed files with 1 additions and 1 deletions

View File

@ -56,8 +56,8 @@ const CLASS_NAME_NEXT = 'carousel-item-next'
const CLASS_NAME_PREV = 'carousel-item-prev' const CLASS_NAME_PREV = 'carousel-item-prev'
const SELECTOR_ACTIVE = '.active' const SELECTOR_ACTIVE = '.active'
const SELECTOR_ACTIVE_ITEM = '.active.carousel-item'
const SELECTOR_ITEM = '.carousel-item' const SELECTOR_ITEM = '.carousel-item'
const SELECTOR_ACTIVE_ITEM = SELECTOR_ACTIVE + SELECTOR_ITEM
const SELECTOR_ITEM_IMG = '.carousel-item img' const SELECTOR_ITEM_IMG = '.carousel-item img'
const SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev' const SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev'
const SELECTOR_INDICATORS = '.carousel-indicators' const SELECTOR_INDICATORS = '.carousel-indicators'