ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding slides does not work.

cpgb85 opened this issue · comments

commented

I saw in some other posts to add new slides you have to:

destroy
add edit or modify
rebuild

This is not possible. I'm triggering my destroying and rebuild on "carousel.events.on('indexchanged')" When i destroy it, it makes the carousel completely unusable and throws errors because all properties in the carousel are now defined as null. Very strange behavior. Also, when triggering rebuild, it returns a completely new object rendering my previous indexchanged event useless.