jQuery-Clickout icon indicating copy to clipboard operation
jQuery-Clickout copied to clipboard

callback is allways called

Open dschi opened this issue 12 years ago • 2 comments

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) {

dschi avatar Dec 10 '12 12:12 dschi

Has this been addressed?

Ne-Ne avatar Jun 19 '14 14:06 Ne-Ne

I'm having the same issue. Fixed it with parseInt.

bnoreus avatar Dec 14 '16 19:12 bnoreus