D
D
Denis Bukreev2016-05-20 15:37:54
JavaScript
Denis Bukreev, 2016-05-20 15:37:54

Why doesn't the initialized event fire on owl.carousel?

Good day.
I use owl.carousel 2.0 in the project.
I need some functions to be executed after the carousel is ready
. The documentation ( Documentation ) describes events, including the one I need - initialize.owl.carousel
If I understand correctly, this event means the carousel is fully loaded.
But when tracking this event, nothing happens.
I tried to track other events - everything is fine, everything works, but something is wrong with this one.
Maybe someone came across?

reviewsCarousel.on('initialized.owl.carousel', function() {
    oneHeight();
    console.log('Initialized');
})

UPD: issue resolved:
owl = $('#owl-carousel');
owl.owlCarousel
    ({
    ....
      	onInitialized: carouselInitialized	    	
               .....
    });

function carouselInitialized(event){....}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Денис Букреев, 2016-05-20
@denisbookreev

Вопрос решен:

owl = $('#owl-carousel');
owl.owlCarousel
    ({
    ....
      	onInitialized: carouselInitialized	    	
               .....
    });

function carouselInitialized(event){....}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question