NickPiscitelli/Glider.js

Best way to remove all slides and add one new

MartijnHarmenzon opened this issue · 2 comments

What is the best way to remove all slides and add one new?

I tried the following code, but this does not remove all slides.

for (let i = 0; i < glider.slides.length; i++) { glider.removeItem(glider.slides.length - 1); };

Solved. I forgot to make a const of the glider.slides.length.