Maybe I am getting something wrong, but this
if (!e.originalEvent.clickin||e.originalEvent.clickin!== id) {will always evaluate to true, even if clickin has the same counter value. Since it is stored as an attribute it is a string.
This seems to work the way I understand it should:
if (!e.originalEvent.clickin||parseInt(e.originalEvent.clickin) !== id) {
Maybe I am getting something wrong, but this
will always evaluate to true, even if clickin has the same counter value. Since it is stored as an attribute it is a string.
This seems to work the way I understand it should: