Closed vedmaka closed 9 years ago
Btw, none of methods working when called via proxy - you can test it at http://darsa.in/sly/ too. Eg:
$('.frame').sly('slideTo',100);
Do nothing.
Update: made few test and found that destroy via proxy working only if slider was initialized via proxy:
$('#frame').sly({ ...options.. })
Reason why this happening is that reference to Sly instance stored in data attribute only when Sly created via proxy. Pull request: #213
Yeah, that was kinda by design, but I guess it makes sense while Sly still supports jQuery. I'm gonna implement your fix.
And sorry for the delay :neutral_face:.
Should be fixed now.
Hooray, thanks! :smile_cat:
I've noticed that destroying slider via proxy method is not working:
Only direct destroy call works. You can try it yourself at Sly promo page: Navigate to http://darsa.in/sly/ , open JS console and execute this code:
Nothing was destroyed.