Closed marsanyi closed 8 years ago
Good idea, will do as soon as I have some free time.
Have you tested other versions?
+1. I've just been debugging a weird error for ages, turned out to be this plugin code responsible:
thumbnail.click({
option: this
}, function(event) {
return event.data.option.clicked();
});
Such a strange syntax, is this v2.1.0 style context? I changed it to the following, works fine. .proxy
has been around since jQuery 1.4.
thumbnail.on('click', $.proxy(function() { return this.clicked(); }, this));
@garygreen can you explain a little what issues were you seeing?
@rvera honestly, I haven't got a clue what was happening but when it hit that bit of code it was executing some other js parts of my app, completely unrelated to image picker. I've never seen that syntax used before (passing object of options to the click event listener).
Will close this for now, since I can't pinpoint the error. Might be fixed on the newest version.
Doesn't work with jQuery 1.4.2; does with jQuery 2.1.0.min; documentation update?