Closed melledijkstra closed 6 years ago
Have you been able to solve this issue? When you say you don't seem to be able to create more than 1 Jtinder slider what scenario are you talking about?
It's a long time ago since I posted the question.
But I had a problem instantiating multiple jTinder objects. When you would swipe the first one the second jTinder slider would also react to that function. Easy said, the 2 jTinder sliders were actually 1 and wouldn't react apart from each other.
But maybe it has been fixed now :?
Like this:
$("#first_jTinder").jTinder({
onLike: function (item) {
// this also triggers the second onLike jTinder slider
}
});
$("#second_jTinder").jTinder({
...
});
MelleDikstra, I'm also interested in a solution to this.
@MelleDijkstra I figured it out. If you still need it, let me know.
@haveabyte Good job! But I don't need it anymore. Thanks anyway!
Can you guys comment on how this was solved?
@haveabyte Can you help post on how you were able to resolve this? thanks in advance
I was able to solve this, ill try to post some help tomorrow or this week.
*EDIT: This actually has to do with the 'this' context in this plugin. It's always referring to the first object you created. Use the proper context and you'll be fine.
I actually posted this up to a URL to work on it and kind of forgot about it. So I don't remember how it all works, but if anyone wants, go grab the code from the page and try to figure out what the heck I actually did. :)
Hi,
Thank you for creating this amazing plugin. There is only a drawback. I don't seem to be able to create more then 1 jTinder slider.
Is this functionality in the plugin? If not, maybe it would be a nice addon.
Just saying.
Melletjee