ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.
MIT License
5.26k stars 786 forks source link

Tiny Slider rebuild() null object #799

Open ivanaMurrayCS opened 2 years ago

ivanaMurrayCS commented 2 years ago

Issue description: When using destroy() and then rebuild() function the object that I'm getting is full of NULL values. Hence I cannot use any of the other functions like goTo() or destroy() again. Is therere something that I'm missing when using destroy and rebuild? Here's the object that I'm getting after the rebuild(); { destroy: null events: null getInfo: null goTo: null isOn: null pause: null play: null rebuild: ƒ () refresh: null updateSliderHeight: null version: null }

Demo link/slider setting: https://codepen.io/minijuji123/pen/jOKNvOG

Tiny-slider version: 2.9.2 Browser name && version: Chrome OS name && version: Windows