nir9 / itemslide

JavaScript Touch Carousel Library with Zero Dependencies
https://itemslide.org
MIT License
647 stars 85 forks source link

Uncaught Error: Syntax error, unrecognized expression: :nth-child(…) #66

Open snetcher opened 7 years ago

snetcher commented 7 years ago

When I initialize the slider, and I specify the starting slide, the script does not check the input value to the type of data

    carousel.itemslide({
        one_item: true,
        start: start_pos
    });

So if I, for example, pass by localStorage I should convert the value yourself. parseInt(start: start_pos) It is not obvious and can cause many problems to the user.

PurHur commented 7 years ago

70