jQuery-Clickout
jQuery-Clickout copied to clipboard
callback is allways called
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) {
Has this been addressed?
I'm having the same issue. Fixed it with parseInt.